1 error[E0637]: `'_` cannot be used here
2 --> $DIR/issue-95305.rs:11:26
4 LL | fn foo(x: &impl Foo<Item<'_> = u32>) { }
5 | ^^ `'_` is a reserved lifetime name
7 error[E0106]: missing lifetime specifier
8 --> $DIR/issue-95305.rs:14:41
10 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'_ u32>) { }
11 | ^^ expected named lifetime parameter
13 help: consider using the `'a` lifetime
15 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'a u32>) { }
18 error: aborting due to 2 previous errors
20 Some errors have detailed explanations: E0106, E0637.
21 For more information about an error, try `rustc --explain E0106`.