about summary refs log tree commit diff
path: root/tests/ui/traits/issue-28576.rs
blob: fd026044401b6e0c2141aa3d6b3368d39a55bd93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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` is not dyn compatible
              <Assoc=()>
    );
}

fn main() {}