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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
635 B
Plaintext
Raw Normal View History

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