1
1
error[E0637]: `'_` cannot be used here
2
- --> $DIR/underscore-lifetime-binders.rs:18 :8
2
+ --> $DIR/underscore-lifetime-binders.rs:14 :8
3
3
|
4
4
LL | fn foo<'_> //~ ERROR cannot be used here
5
5
| ^^ `'_` is a reserved lifetime name
6
6
7
7
error[E0637]: `'_` cannot be used here
8
- --> $DIR/underscore-lifetime-binders.rs:24 :21
8
+ --> $DIR/underscore-lifetime-binders.rs:20 :21
9
9
|
10
10
LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR cannot be used here
11
11
| ^^ `'_` is a reserved lifetime name
@@ -17,13 +17,7 @@ LL | struct Baz<'a>(&'_ &'a u8); //~ ERROR missing lifetime specifier
17
17
| ^^ expected lifetime parameter
18
18
19
19
error[E0106]: missing lifetime specifier
20
- --> $DIR/underscore-lifetime-binders.rs:14:10
21
- |
22
- LL | impl Foo<'_> { //~ ERROR missing lifetime specifier
23
- | ^^ expected lifetime parameter
24
-
25
- error[E0106]: missing lifetime specifier
26
- --> $DIR/underscore-lifetime-binders.rs:24:29
20
+ --> $DIR/underscore-lifetime-binders.rs:20:29
27
21
|
28
22
LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR cannot be used here
29
23
| ^^ expected lifetime parameter
@@ -32,14 +26,14 @@ LL | fn meh() -> Box<for<'_> Meh<'_>> //~ ERROR cannot be used here
32
26
= help: consider giving it a 'static lifetime
33
27
34
28
error[E0106]: missing lifetime specifier
35
- --> $DIR/underscore-lifetime-binders.rs:30 :35
29
+ --> $DIR/underscore-lifetime-binders.rs:26 :35
36
30
|
37
31
LL | fn foo2(_: &'_ u8, y: &'_ u8) -> &'_ u8 { y } //~ ERROR missing lifetime specifier
38
32
| ^^ expected lifetime parameter
39
33
|
40
34
= help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `_` or `y`
41
35
42
- error: aborting due to 6 previous errors
36
+ error: aborting due to 5 previous errors
43
37
44
38
Some errors occurred: E0106, E0637.
45
39
For more information about an error, try `rustc --explain E0106`.
0 commit comments