1 error: implementation of `Foo` is not general enough
2 --> $DIR/auto-trait-regions.rs:31:5
5 | ^^^^^^^^^^ implementation of `Foo` is not general enough
7 = note: `&'0 OnlyFooIfStaticRef` must implement `Foo`, for any lifetime `'0`...
8 = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef`
10 error: implementation of `Foo` is not general enough
11 --> $DIR/auto-trait-regions.rs:31:5
14 | ^^^^^^^^^^ implementation of `Foo` is not general enough
16 = note: `&'0 OnlyFooIfStaticRef` must implement `Foo`, for any lifetime `'0`...
17 = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef`
19 error: implementation of `Foo` is not general enough
20 --> $DIR/auto-trait-regions.rs:50:5
23 | ^^^^^^^^^^ implementation of `Foo` is not general enough
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`
28 error: implementation of `Foo` is not general enough
29 --> $DIR/auto-trait-regions.rs:50:5
32 | ^^^^^^^^^^ implementation of `Foo` is not general enough
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`
37 error: aborting due to 4 previous errors