1 error[E0106]: missing lifetime specifier
2 --> $DIR/issue-95305.rs:11:26
4 LL | fn foo(x: &impl Foo<Item<'_> = u32>) { }
5 | ^^ expected named lifetime parameter
7 help: consider introducing a named lifetime parameter
9 LL | fn foo<'a>(x: &impl Foo<Item<'a> = u32>) { }
12 error[E0106]: missing lifetime specifier
13 --> $DIR/issue-95305.rs:14:41
15 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'_ u32>) { }
16 | ^^ expected named lifetime parameter
18 help: consider using the `'a` lifetime
20 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'a u32>) { }
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0106`.