]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-header-lifetime-elision/assoc-type.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / impl-header-lifetime-elision / assoc-type.stderr
1 error[E0637]: `&` without an explicit lifetime name cannot be used here
2   --> $DIR/assoc-type.rs:11:19
3    |
4 LL |     type Output = &i32;
5    |                   ^ explicit lifetime name needed here
6
7 error[E0637]: `'_` cannot be used here
8   --> $DIR/assoc-type.rs:16:20
9    |
10 LL |     type Output = &'_ i32;
11    |                    ^^ `'_` is a reserved lifetime name
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0637`.