fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
724 B27 linesraw
1// run-rustfix
2
3#![allow(non_camel_case_types)]
4#![deny(keyword_idents)]
5
6mod outer_mod {
7    pub mod r#await {
8//~^ ERROR `await` is a keyword
9//~| WARN this is accepted in the current edition
10        pub struct r#await;
11//~^ ERROR `await` is a keyword
12//~| WARN this is accepted in the current edition
13    }
14}
15use outer_mod::r#await::r#await;
16//~^ ERROR `await` is a keyword
17//~| ERROR `await` is a keyword
18//~| WARN this is accepted in the current edition
19//~| WARN this is accepted in the current edition
20
21fn main() {
22    match r#await { r#await => {} }
23//~^ ERROR `await` is a keyword
24//~| ERROR `await` is a keyword
25//~| WARN this is accepted in the current edition
26//~| WARN this is accepted in the current edition
27}