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