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