]>
Commit | Line | Data |
---|---|---|
0731742a | 1 | error: implementation of `Foo` is not general enough |
ba9703b0 | 2 | --> $DIR/auto-trait-regions.rs:31:5 |
2c00a5a8 | 3 | | |
0731742a | 4 | LL | 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 | 10 | error: implementation of `Foo` is not general enough |
ba9703b0 | 11 | --> $DIR/auto-trait-regions.rs:31:5 |
dfeec247 | 12 | | |
dfeec247 XL |
13 | LL | 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 | |
19 | error: implementation of `Foo` is not general enough | |
ba9703b0 | 20 | --> $DIR/auto-trait-regions.rs:50:5 |
dfeec247 | 21 | | |
dfeec247 XL |
22 | LL | 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 | ||
28 | error: implementation of `Foo` is not general enough | |
ba9703b0 | 29 | --> $DIR/auto-trait-regions.rs:50:5 |
2c00a5a8 | 30 | | |
0731742a | 31 | LL | 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 | 37 | error: aborting due to 4 previous errors |
2c00a5a8 | 38 |