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