rust/src/test/ui/issues/issue-28576.rs
2018-12-25 21:08:33 -07:00

13 lines
218 B
Rust

pub trait Foo<RHS=Self> {
type Assoc;
}
pub trait Bar: Foo<Assoc=()> {
fn new(&self, b: &
Bar //~ ERROR the trait `Bar` cannot be made into an object
<Assoc=()>
);
}
fn main() {}