2015-09-24 18:27:29 +03:00
|
|
|
pub trait Foo<RHS=Self> {
|
|
|
|
|
type Assoc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub trait Bar: Foo<Assoc=()> {
|
|
|
|
|
fn new(&self, b: &
|
2019-05-28 14:46:13 -04:00
|
|
|
dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
|
2015-09-24 18:27:29 +03:00
|
|
|
<Assoc=()>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|