fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
947 B23 linesraw
1error: expected identifier, found keyword `loop`
2  --> $DIR/lifetime_starts_expressions.rs:6:26
3   |
4LL |     loop { break 'label: loop { break 'label 42; }; }
5   |                          ^^^^ expected identifier, found keyword
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL |     loop { break 'label: r#loop { break 'label 42; }; }
9   |                          ^^^^^^
10
11error: expected type, found keyword `loop`
12  --> $DIR/lifetime_starts_expressions.rs:6:26
13   |
14LL |     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
22error: aborting due to 2 previous errors
23