2015-09-24 18:27:29 +03:00
|
|
|
pub trait Foo<RHS=Self> {
|
|
|
|
type Assoc;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Bar: Foo<Assoc=()> {
|
2023-10-31 13:45:26 +00:00
|
|
|
//~^ ERROR: the size for values of type `Self` cannot be known
|
|
|
|
//~| ERROR: the size for values of type `Self` cannot be known
|
2015-09-24 18:27:29 +03:00
|
|
|
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() {}
|