]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-header-lifetime-elision/assoc-type.stderr
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / impl-header-lifetime-elision / assoc-type.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/assoc-type.rs:11:19
3    |
4 LL |     type Output = &i32;
5    |                   ^ expected named lifetime parameter
6    |
7 help: consider introducing a named lifetime parameter
8    |
9 LL |     type Output<'a> = &'a i32;
10    |                ++++    ++
11
12 error[E0106]: missing lifetime specifier
13   --> $DIR/assoc-type.rs:16:20
14    |
15 LL |     type Output = &'_ i32;
16    |                    ^^ expected named lifetime parameter
17    |
18 help: consider introducing a named lifetime parameter
19    |
20 LL |     type Output<'a> = &'a i32;
21    |                ++++    ~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0106`.