]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime_starts_expressions.stderr
Improve some compiletest documentation
[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 error: aborting due to 2 previous errors
18