2018-04-23 09:18:04 +00:00
|
|
|
error: expected identifier, found keyword `loop`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
2018-04-23 09:18:04 +00:00
|
|
|
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
|
|
|
| ^^^^ expected identifier, found keyword
|
2018-12-30 19:52:15 +00:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | loop { break 'label: r#loop { break 'label 42; }; }
|
|
|
|
| ^^^^^^
|
2018-04-23 09:18:04 +00:00
|
|
|
|
|
|
|
error: expected type, found keyword `loop`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
2018-04-23 09:18:04 +00:00
|
|
|
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
2019-07-17 18:40:36 +00:00
|
|
|
| - ^^^^ expected type
|
|
|
|
| |
|
|
|
|
| tried to parse a type due to this type ascription
|
2019-03-13 02:27:10 +00:00
|
|
|
|
|
2019-07-15 21:23:39 +00:00
|
|
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
|
2019-07-17 18:40:36 +00:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/23416
|
2018-04-23 09:18:04 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|