rust/tests/ui/lifetimes/lifetime-no-keyword.stderr

27 lines
635 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: lifetimes cannot use keyword names
2018-12-25 15:56:47 +00:00
--> $DIR/lifetime-no-keyword.rs:3:8
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn baz<'let>(a: &'let isize) { }
2018-08-08 12:28:26 +00:00
| ^^^^
error: lifetimes cannot use keyword names
2018-12-25 15:56:47 +00:00
--> $DIR/lifetime-no-keyword.rs:3:18
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn baz<'let>(a: &'let isize) { }
2018-08-08 12:28:26 +00:00
| ^^^^
error: lifetimes cannot use keyword names
2018-12-25 15:56:47 +00:00
--> $DIR/lifetime-no-keyword.rs:5:8
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn zab<'self>(a: &'self isize) { }
2018-08-08 12:28:26 +00:00
| ^^^^^
error: lifetimes cannot use keyword names
2018-12-25 15:56:47 +00:00
--> $DIR/lifetime-no-keyword.rs:5:19
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn zab<'self>(a: &'self isize) { }
2018-08-08 12:28:26 +00:00
| ^^^^^
error: aborting due to 4 previous errors