]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/raw-name-use-suggestion.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / raw-name-use-suggestion.stderr
1 error: expected identifier, found keyword `break`
2   --> $DIR/raw-name-use-suggestion.rs:3:12
3    |
4 LL |     pub fn break() {}
5    |            ^^^^^ expected identifier, found keyword
6    |
7 help: you can escape reserved keywords to use them as identifiers
8    |
9 LL |     pub fn r#break() {}
10    |            ~~~~~~~
11
12 error: expected identifier, found keyword `let`
13   --> $DIR/raw-name-use-suggestion.rs:7:10
14    |
15 LL |     foo::let();
16    |          ^^^ expected identifier, found keyword
17    |
18 help: you can escape reserved keywords to use them as identifiers
19    |
20 LL |     foo::r#let();
21    |          ~~~~~
22
23 error[E0425]: cannot find function `r#break` in this scope
24   --> $DIR/raw-name-use-suggestion.rs:8:5
25    |
26 LL |     r#break();
27    |     ^^^^^^^ not found in this scope
28    |
29 help: consider importing this function
30    |
31 LL | use foo::r#break;
32    |
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0425`.