summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0637.stderr
blob: f744520ef6ee5da370a934b05a2bab05cfd85ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0637]: `'_` cannot be used here
  --> $DIR/E0637.rs:1:16
   |
LL | struct Foo<'a: '_>(&'a u8); //~ ERROR cannot be used here
   |                ^^ `'_` is a reserved lifetime name

error[E0637]: `'_` cannot be used here
  --> $DIR/E0637.rs:2:12
   |
LL | fn foo<'a: '_>(_: &'a u8) {} //~ ERROR cannot be used here
   |            ^^ `'_` is a reserved lifetime name

error[E0637]: `'_` cannot be used here
  --> $DIR/E0637.rs:5:10
   |
LL | impl<'a: '_> Bar<'a> { //~ ERROR cannot be used here
   |          ^^ `'_` is a reserved lifetime name

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0637`.