]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-95305.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-95305.stderr
1 error[E0106]: missing lifetime specifier
2 --> $DIR/issue-95305.rs:11:26
3 |
4 LL | fn foo(x: &impl Foo<Item<'_> = u32>) { }
5 | ^^ expected named lifetime parameter
6 |
7 help: consider introducing a named lifetime parameter
8 |
9 LL | fn foo<'a>(x: &impl Foo<Item<'a> = u32>) { }
10 | ++++ ~~
11
12 error[E0106]: missing lifetime specifier
13 --> $DIR/issue-95305.rs:14:41
14 |
15 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'_ u32>) { }
16 | ^^ expected named lifetime parameter
17 |
18 help: consider using the `'a` lifetime
19 |
20 LL | fn bar(x: &impl for<'a> Foo<Item<'a> = &'a u32>) { }
21 | ~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0106`.