rust/tests/ui/issues/issue-65634-raw-ident-suggestion.rs
2023-01-11 09:32:08 +00:00

23 lines
337 B
Rust

#![allow(non_camel_case_types)]
trait r#async {
fn r#struct(&self) {
println!("async");
}
}
trait r#await {
fn r#struct(&self) {
println!("await");
}
}
struct r#fn {}
impl r#async for r#fn {}
impl r#await for r#fn {}
fn main() {
r#fn {}.r#struct(); //~ ERROR multiple applicable items in scope
}