2019-11-20 22:50:13 +00:00
|
|
|
error: expected identifier, found keyword `break`
|
|
|
|
--> $DIR/raw-name-use-suggestion.rs:3:12
|
|
|
|
|
|
|
|
|
LL | pub fn break() {}
|
|
|
|
| ^^^^^ expected identifier, found keyword
|
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `break` to use it as an identifier
|
2019-11-20 22:50:13 +00:00
|
|
|
|
|
|
|
|
LL | pub fn r#break() {}
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-11-20 22:50:13 +00:00
|
|
|
|
|
|
|
error: expected identifier, found keyword `let`
|
|
|
|
--> $DIR/raw-name-use-suggestion.rs:7:10
|
|
|
|
|
|
|
|
|
LL | foo::let();
|
|
|
|
| ^^^ expected identifier, found keyword
|
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `let` to use it as an identifier
|
2019-11-20 22:50:13 +00:00
|
|
|
|
|
|
|
|
LL | foo::r#let();
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-11-20 22:50:13 +00:00
|
|
|
|
2019-12-04 03:01:42 +00:00
|
|
|
error[E0425]: cannot find function `r#break` in this scope
|
2019-11-20 22:50:13 +00:00
|
|
|
--> $DIR/raw-name-use-suggestion.rs:8:5
|
|
|
|
|
|
|
|
|
LL | r#break();
|
|
|
|
| ^^^^^^^ not found in this scope
|
|
|
|
|
|
2020-05-04 22:12:06 +00:00
|
|
|
help: consider importing this function
|
2019-11-20 22:50:13 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use foo::r#break;
|
2019-11-20 22:50:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|