mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
13 lines
222 B
Rust
13 lines
222 B
Rust
pub trait Foo<RHS=Self> {
|
|
type Assoc;
|
|
}
|
|
|
|
pub trait Bar: Foo<Assoc=()> {
|
|
fn new(&self, b: &
|
|
dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
|
|
<Assoc=()>
|
|
);
|
|
}
|
|
|
|
fn main() {}
|