fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1000 B36 linesraw
1error: expected identifier, found keyword `break`
2  --> $DIR/raw-name-use-suggestion.rs:3:12
3   |
4LL |     pub fn break() {}
5   |            ^^^^^ expected identifier, found keyword
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL |     pub fn r#break() {}
10   |            ^^^^^^^
11
12error: expected identifier, found keyword `let`
13  --> $DIR/raw-name-use-suggestion.rs:7:10
14   |
15LL |     foo::let();
16   |          ^^^ expected identifier, found keyword
17   |
18help: you can escape reserved keywords to use them as identifiers
19   |
20LL |     foo::r#let();
21   |          ^^^^^
22
23error[E0425]: cannot find function `r#break` in this scope
24  --> $DIR/raw-name-use-suggestion.rs:8:5
25   |
26LL |     r#break();
27   |     ^^^^^^^ not found in this scope
28   |
29help: possible candidate is found in another module, you can import it into scope
30   |
31LL | use foo::r#break;
32   |
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0425`.