mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
26 lines
406 B
Rust
26 lines
406 B
Rust
//@ revisions: edition2015 edition2018
|
|
//@[edition2018]edition:2018
|
|
|
|
#![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
|
|
}
|