]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime_starts_expressions.stderr
Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichton
[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    |                          ^^^^ expecting a type here because of type ascription
16    |
17    = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
18 note: this expression expects an ascribed type after the colon
19   --> $DIR/lifetime_starts_expressions.rs:6:12
20    |
21 LL |     loop { break 'label: loop { break 'label 42; }; }
22    |            ^^^^^^^^^^^^
23    = help: this might be indicative of a syntax error elsewhere
24
25 error: aborting due to 2 previous errors
26