]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime_starts_expressions.stderr
Auto merge of #65429 - Timmmm:withoptions, r=Mark-Simulacrum
[rust.git] / src / test / ui / lifetime_starts_expressions.stderr
1 error: expected identifier, found keyword `loop`
2   --> $DIR/lifetime_starts_expressions.rs:6:26
3    |
4 LL |     loop { break 'label: loop { break 'label 42; }; }
5    |                          ^^^^ expected identifier, found keyword
6    |
7 help: you can escape reserved keywords to use them as identifiers
8    |
9 LL |     loop { break 'label: r#loop { break 'label 42; }; }
10    |                          ^^^^^^
11
12 error: expected type, found keyword `loop`
13   --> $DIR/lifetime_starts_expressions.rs:6:26
14    |
15 LL |     loop { break 'label: loop { break 'label 42; }; }
16    |                        - ^^^^ expected type
17    |                        |
18    |                        tried to parse a type due to this type ascription
19    |
20    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
21    = note: for more information, see https://github.com/rust-lang/rust/issues/23416
22
23 error: aborting due to 2 previous errors
24