fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
952 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: for more information, see https://github.com/rust-lang/rust/issues/23416
22
23error: aborting due to 2 previous errors
24