mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
356 B
Rust
15 lines
356 B
Rust
pub trait Foo<RHS=Self> {
|
|
type Assoc;
|
|
}
|
|
|
|
pub trait Bar: Foo<Assoc=()> {
|
|
//~^ ERROR: the size for values of type `Self` cannot be known
|
|
//~| ERROR: the size for values of type `Self` cannot be known
|
|
fn new(&self, b: &
|
|
dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
|
|
<Assoc=()>
|
|
);
|
|
}
|
|
|
|
fn main() {}
|