]> git.proxmox.com Git - rustc.git/blob - src/test/ui/underscore-lifetime/in-binder.stderr
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / underscore-lifetime / in-binder.stderr
1 error[E0637]: `'_` cannot be used here
2 --> $DIR/in-binder.rs:9:6
3 |
4 LL | impl<'_> IceCube<'_> {}
5 | ^^ `'_` is a reserved lifetime name
6
7 error[E0637]: `'_` cannot be used here
8 --> $DIR/in-binder.rs:12:15
9 |
10 LL | struct Struct<'_> {
11 | ^^ `'_` is a reserved lifetime name
12
13 error[E0637]: `'_` cannot be used here
14 --> $DIR/in-binder.rs:17:11
15 |
16 LL | enum Enum<'_> {
17 | ^^ `'_` is a reserved lifetime name
18
19 error[E0637]: `'_` cannot be used here
20 --> $DIR/in-binder.rs:22:13
21 |
22 LL | union Union<'_> {
23 | ^^ `'_` is a reserved lifetime name
24
25 error[E0637]: `'_` cannot be used here
26 --> $DIR/in-binder.rs:27:13
27 |
28 LL | trait Trait<'_> {
29 | ^^ `'_` is a reserved lifetime name
30
31 error[E0637]: `'_` cannot be used here
32 --> $DIR/in-binder.rs:31:8
33 |
34 LL | fn foo<'_>() {
35 | ^^ `'_` is a reserved lifetime name
36
37 error: aborting due to 6 previous errors
38