]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/auto-trait-regions.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / generator / auto-trait-regions.stderr
1 error: implementation of `Foo` is not general enough
2 --> $DIR/auto-trait-regions.rs:30:5
3 |
4 LL | assert_foo(gen);
5 | ^^^^^^^^^^
6 |
7 = note: `Foo` would have to be implemented for the type `&'0 OnlyFooIfStaticRef`, for any lifetime `'0`
8 = note: but `Foo` is actually implemented for the type `&'1 OnlyFooIfStaticRef`, for some specific lifetime `'1`
9
10 error: implementation of `Foo` is not general enough
11 --> $DIR/auto-trait-regions.rs:48:5
12 |
13 LL | assert_foo(gen);
14 | ^^^^^^^^^^
15 |
16 = note: `Foo` would have to be implemented for the type `A<'0, '1>`, for any two lifetimes `'0` and `'1`
17 = note: but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2`
18
19 error: aborting due to 2 previous errors
20