]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/hrtb-perfect-forwarding.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-perfect-forwarding.stderr
CommitLineData
b7449926
XL
1error[E0277]: the trait bound `for<'a> T: Bar<&'a isize>` is not satisfied
2 --> $DIR/hrtb-perfect-forwarding.rs:56:5
3 |
4LL | 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`
9note: required by `foo_hrtb_bar_not`
10 --> $DIR/hrtb-perfect-forwarding.rs:49:1
11 |
12LL | / fn foo_hrtb_bar_not<'b,T>(mut t: T)
13LL | | where T : for<'a> Foo<&'a isize> + Bar<&'b isize>
14LL | | {
15LL | | // Not OK -- The forwarding impl for `Foo` requires that `Bar` also
16... |
17LL | | foo_hrtb_bar_not(&mut t); //~ ERROR `for<'a> T: Bar<&'a isize>` is not satisfied
18LL | | }
19 | |_^
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.