1 error: implementation of `Foo` is not general enough
2 --> $DIR/issue-46989.rs:40:5
7 | |_- trait `Foo` defined here
9 LL | assert_foo::<fn(&i32)>();
10 | ^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
12 = note: `Foo` would have to be implemented for the type `for<'r> fn(&'r i32)`
13 = note: ...but `Foo` is actually implemented for the type `fn(&'0 i32)`, for some specific lifetime `'0`
15 error: aborting due to previous error