2022-07-29 19:06:13 +00:00
|
|
|
//@ run-rustfix
|
2022-09-13 18:48:29 +00:00
|
|
|
//@ edition:2018
|
2022-07-29 19:06:13 +00:00
|
|
|
#![allow(unused_imports)]
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
2023-04-27 00:53:06 +00:00
|
|
|
Use std::ptr::read; //~ ERROR keyword `use` is written in the wrong case
|
|
|
|
USE std::ptr::write; //~ ERROR keyword `use` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
async Fn _a() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `fn` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
Fn _b() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `fn` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
aSYNC fN _c() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `async` is written in the wrong case
|
|
|
|
//~| ERROR keyword `fn` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
Async fn _d() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `async` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
CONST UNSAFE FN _e() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `const` is written in the wrong case
|
|
|
|
//~| ERROR keyword `unsafe` is written in the wrong case
|
|
|
|
//~| ERROR keyword `fn` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
unSAFE EXTern fn _f() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `unsafe` is written in the wrong case
|
|
|
|
//~| ERROR keyword `extern` is written in the wrong case
|
2022-09-13 18:48:29 +00:00
|
|
|
|
|
|
|
EXTERN "C" FN _g() {}
|
2023-04-27 00:53:06 +00:00
|
|
|
//~^ ERROR keyword `extern` is written in the wrong case
|
|
|
|
//~| ERROR keyword `fn` is written in the wrong case
|