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