rust/src/test/ui/suggestions/raw-name-use-suggestion.rs

10 lines
259 B
Rust
Raw Normal View History

mod foo {
pub fn r#let() {}
pub fn break() {} //~ ERROR expected identifier, found keyword `break`
}
fn main() {
foo::let(); //~ ERROR expected identifier, found keyword `let`
r#break(); //~ ERROR cannot find function `break` in this scope
}