about summary refs log tree commit diff
path: root/tests/ui/traits/deep-norm-pending.rs
blob: d6c498dcf2bdea8e4e33213ad9e8657e5d2c6558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
trait Foo {
    type Assoc;
}

trait Bar {
    fn method() -> impl Sized;
    //~^ ERROR the trait bound `T: Foo` is not satisfied
}
impl<T> Bar for T
//~^ ERROR the trait bound `T: Foo` is not satisfied
where
    <T as Foo>::Assoc: Sized,
    //~^ ERROR the trait bound `T: Foo` is not satisfied
    //~| ERROR the trait bound `T: Foo` is not satisfied
{
    fn method() {}
    //~^ ERROR the trait bound `T: Foo` is not satisfied
    //~| ERROR the trait bound `T: Foo` is not satisfied
    //~| ERROR the trait bound `T: Foo` is not satisfied
    //~| ERROR the trait bound `T: Foo` is not satisfied
    //~| ERROR the trait bound `T: Foo` is not satisfied
}

fn main() {}