]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hrtb/hrtb-perfect-forwarding.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-perfect-forwarding.stderr
1 error: implementation of `Bar` is not general enough
2 --> $DIR/hrtb-perfect-forwarding.rs:43:5
3 |
4 LL | foo_hrtb_bar_not(&mut t);
5 | ^^^^^^^^^^^^^^^^ implementation of `Bar` is not general enough
6 |
7 = note: `T` must implement `Bar<&'0 isize>`, for any lifetime `'0`...
8 = note: ...but it actually implements `Bar<&'b isize>`
9
10 error: implementation of `Bar` is not general enough
11 --> $DIR/hrtb-perfect-forwarding.rs:43:5
12 |
13 LL | foo_hrtb_bar_not(&mut t);
14 | ^^^^^^^^^^^^^^^^ implementation of `Bar` is not general enough
15 |
16 = note: `T` must implement `Bar<&'0 isize>`, for any lifetime `'0`...
17 = note: ...but it actually implements `Bar<&'b isize>`
18
19 error: aborting due to 2 previous errors
20