1 error: implementation of `Foo` is not general enough
2 --> $DIR/issue-54302-cases.rs:63:5
4 LL | <u32 as RefFoo<u32>>::ref_foo(a)
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `&'0 u32` must implement `Foo<'static, u32>` for any lifetime `'0`
8 = note: but `&'1 _` only implements `Foo<'_, _>` for the lifetime `'1`
10 error: implementation of `Foo` is not general enough
11 --> $DIR/issue-54302-cases.rs:69:5
13 LL | <i32 as RefFoo<i32>>::ref_foo(a)
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: `&'0 i32` must implement `Foo<'static, i32>` for any lifetime `'0`
17 = note: but `&'1 _` only implements `Foo<'_, _>` for the lifetime `'1`
19 error: implementation of `Foo` is not general enough
20 --> $DIR/issue-54302-cases.rs:75:5
22 LL | <u64 as RefFoo<u64>>::ref_foo(a)
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 = note: `&'0 u64` must implement `Foo<'static, u64>` for any lifetime `'0`
26 = note: but `&'1 _` only implements `Foo<'_, _>` for the lifetime `'1`
28 error: implementation of `Foo` is not general enough
29 --> $DIR/issue-54302-cases.rs:81:5
31 LL | <i64 as RefFoo<i64>>::ref_foo(a)
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 = note: `&'0 i64` must implement `Foo<'static, i64>` for any lifetime `'0`
35 = note: but `&'1 _` only implements `Foo<'_, _>` for the lifetime `'1`
37 error: aborting due to 4 previous errors