]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/item-kw-case-mismatch.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / item-kw-case-mismatch.rs
1 // run-rustfix
2 // edition:2018
3 #![allow(unused_imports)]
4
5 fn main() {}
6
7 Use std::ptr::read;  //~ ERROR keyword `use` is written in a wrong case
8 USE std::ptr::write; //~ ERROR keyword `use` is written in a wrong case
9
10 async Fn _a() {}
11 //~^ ERROR keyword `fn` is written in a wrong case
12
13 Fn _b() {}
14 //~^ ERROR keyword `fn` is written in a wrong case
15
16 aSYNC fN _c() {}
17 //~^ ERROR keyword `async` is written in a wrong case
18 //~| ERROR keyword `fn` is written in a wrong case
19
20 Async fn _d() {}
21 //~^ ERROR keyword `async` is written in a wrong case
22
23 CONST UNSAFE FN _e() {}
24 //~^ ERROR keyword `const` is written in a wrong case
25 //~| ERROR keyword `unsafe` is written in a wrong case
26 //~| ERROR keyword `fn` is written in a wrong case
27
28 unSAFE EXTern fn _f() {}
29 //~^ ERROR keyword `unsafe` is written in a wrong case
30 //~| ERROR keyword `extern` is written in a wrong case
31
32 EXTERN "C" FN _g() {}
33 //~^ ERROR keyword `extern` is written in a wrong case
34 //~| ERROR keyword `fn` is written in a wrong case