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