summary refs log tree commit diff
path: root/src/test/ui/issues/issue-28576.rs
blob: de665d5aa1680e9aab1563a385891f247b92fdbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}