]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generator/auto-trait-regions.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / generator / auto-trait-regions.stderr
CommitLineData
0731742a 1error: implementation of `Foo` is not general enough
ba9703b0 2 --> $DIR/auto-trait-regions.rs:31:5
2c00a5a8 3 |
0731742a 4LL | assert_foo(gen);
e1599b0c 5 | ^^^^^^^^^^ implementation of `Foo` is not general enough
2c00a5a8 6 |
6a06907d
XL
7 = note: `&'0 OnlyFooIfStaticRef` must implement `Foo`, for any lifetime `'0`...
8 = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef`
2c00a5a8 9
0731742a 10error: implementation of `Foo` is not general enough
ba9703b0 11 --> $DIR/auto-trait-regions.rs:31:5
dfeec247 12 |
dfeec247
XL
13LL | assert_foo(gen);
14 | ^^^^^^^^^^ implementation of `Foo` is not general enough
15 |
6a06907d
XL
16 = note: `&'0 OnlyFooIfStaticRef` must implement `Foo`, for any lifetime `'0`...
17 = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef`
dfeec247
XL
18
19error: implementation of `Foo` is not general enough
ba9703b0 20 --> $DIR/auto-trait-regions.rs:50:5
dfeec247 21 |
dfeec247
XL
22LL | assert_foo(gen);
23 | ^^^^^^^^^^ implementation of `Foo` is not general enough
24 |
25 = note: `Foo` would have to be implemented for the type `A<'0, '1>`, for any two lifetimes `'0` and `'1`...
26 = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2`
27
28error: implementation of `Foo` is not general enough
ba9703b0 29 --> $DIR/auto-trait-regions.rs:50:5
2c00a5a8 30 |
0731742a 31LL | assert_foo(gen);
e1599b0c 32 | ^^^^^^^^^^ implementation of `Foo` is not general enough
2c00a5a8 33 |
e1599b0c
XL
34 = note: `Foo` would have to be implemented for the type `A<'0, '1>`, for any two lifetimes `'0` and `'1`...
35 = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2`
2c00a5a8 36
dfeec247 37error: aborting due to 4 previous errors
2c00a5a8 38