rust/src/test/ui/issues/issue-28576.rs
2019-05-29 00:57:31 -04:00

12 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() {}