]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/hrtb-conflate-regions.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-conflate-regions.stderr
CommitLineData
f035d41b
XL
1error: implementation of `Foo` is not general enough
2 --> $DIR/hrtb-conflate-regions.rs:27:10
b7449926 3 |
6a06907d 4LL | fn b() { want_foo2::<SomeStruct>(); }
923072b8 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
b7449926 6 |
f035d41b 7 = note: `SomeStruct` must implement `Foo<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
6a06907d 8 = note: ...but it actually implements `Foo<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
b7449926 9
923072b8
FG
10error: implementation of `Foo` is not general enough
11 --> $DIR/hrtb-conflate-regions.rs:27:10
12 |
13LL | fn b() { want_foo2::<SomeStruct>(); }
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
15 |
16 = note: `SomeStruct` must implement `Foo<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
17 = note: ...but it actually implements `Foo<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
18
19error: aborting due to 2 previous errors
b7449926 20