summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr
blob: 66f592c34dd070ada24e0e826d4dd25c017eac99 (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
25
26
27
28
29
error[E0277]: the trait bound `for<'z> T: Trait2<'y, 'z>` is not satisfied
  --> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:1
   |
LL | / fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
LL | |
LL | |
LL | | {
LL | | }
   | |_^ the trait `for<'z> Trait2<'y, 'z>` is not implemented for `T`
   |
help: consider restricting type parameter `T`
   |
LL | fn callee<'x, 'y, T: for<'z> Trait2<'y, 'z>>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
   |                    ++++++++++++++++++++++++

error[E0277]: the trait bound `for<'z> T: Trait2<'y, 'z>` is not satisfied
  --> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:49
   |
LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'z> Trait2<'y, 'z>` is not implemented for `T`
   |
help: consider restricting type parameter `T`
   |
LL | fn callee<'x, 'y, T: for<'z> Trait2<'y, 'z>>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
   |                    ++++++++++++++++++++++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.