fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
966 B24 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
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL |     loop { break 'label: r#loop { break 'label 42; }; }
10   |                          ^^^^^^
11
12error: expected type, found keyword `loop`
13  --> $DIR/lifetime_starts_expressions.rs:6:26
14   |
15LL |     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: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
22
23error: aborting due to 2 previous errors
24