]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-95305.stderr
Auto merge of #97841 - nvzqz:inline-encode-wide, r=thomcc
[rust.git] / src / test / ui / generic-associated-types / issue-95305.stderr
1 error[E0637]: `'_` cannot be used here
2   --> $DIR/issue-95305.rs:11:26
3    |
4 LL | fn foo(x: &impl Foo<Item<'_> = u32>) { }
5    |                          ^^ `'_` is a reserved lifetime name
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
20 Some errors have detailed explanations: E0106, E0637.
21 For more information about an error, try `rustc --explain E0106`.