2018-04-23 11:18:04 +02:00
|
|
|
error: expected identifier, found keyword `loop`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
2018-04-23 11:18:04 +02:00
|
|
|
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
|
|
|
| ^^^^ expected identifier, found keyword
|
2018-12-30 11:52:15 -08:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | loop { break 'label: r#loop { break 'label 42; }; }
|
|
|
|
| ^^^^^^
|
2018-04-23 11:18:04 +02:00
|
|
|
|
|
|
|
error: expected type, found keyword `loop`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lifetime_starts_expressions.rs:6:26
|
2018-04-23 11:18:04 +02:00
|
|
|
|
|
|
|
|
LL | loop { break 'label: loop { break 'label 42; }; }
|
|
|
|
| ^^^^ expecting a type here because of type ascription
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|