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: &
|
2024-11-20 14:19:36 -08:00
|
|
|
dyn Bar //~ ERROR the trait `Bar` is not dyn compatible
|
2015-09-24 18:27:29 +03:00
|
|
|
<Assoc=()>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|