]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error[E0277]: the trait bound `for<'a> T: Bar<&'a isize>` is not satisfied |
2 | --> $DIR/hrtb-perfect-forwarding.rs:56:5 | |
3 | | | |
4 | LL | foo_hrtb_bar_not(&mut t); //~ ERROR `for<'a> T: Bar<&'a isize>` is not satisfied | |
5 | | ^^^^^^^^^^^^^^^^ the trait `for<'a> Bar<&'a isize>` is not implemented for `T` | |
6 | | | |
7 | = help: consider adding a `where for<'a> T: Bar<&'a isize>` bound | |
8 | = note: required because of the requirements on the impl of `for<'a> Foo<&'a isize>` for `&mut T` | |
9 | note: required by `foo_hrtb_bar_not` | |
10 | --> $DIR/hrtb-perfect-forwarding.rs:49:1 | |
11 | | | |
12 | LL | / fn foo_hrtb_bar_not<'b,T>(mut t: T) | |
13 | LL | | where T : for<'a> Foo<&'a isize> + Bar<&'b isize> | |
14 | LL | | { | |
15 | LL | | // Not OK -- The forwarding impl for `Foo` requires that `Bar` also | |
16 | ... | | |
17 | LL | | foo_hrtb_bar_not(&mut t); //~ ERROR `for<'a> T: Bar<&'a isize>` is not satisfied | |
18 | LL | | } | |
19 | | |_^ | |
20 | ||
21 | error: aborting due to previous error | |
22 | ||
23 | For more information about this error, try `rustc --explain E0277`. |