2022-07-29 14:06:13 -05:00
|
|
|
// run-rustfix
|
2022-09-13 13:48:29 -05:00
|
|
|
// edition:2018
|
2022-07-29 14:06:13 -05:00
|
|
|
#![allow(unused_imports)]
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
2023-04-26 19:53:06 -05: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 13:48:29 -05:00
|
|
|
|
|
|
|
async fn _a() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `fn` is written in the wrong case
|
2022-09-13 13:48:29 -05:00
|
|
|
|
|
|
|
fn _b() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `fn` is written in the wrong case
|
2022-09-13 13:48:29 -05:00
|
|
|
|
|
|
|
async fn _c() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `async` is written in the wrong case
|
|
|
|
//~| ERROR keyword `fn` is written in the wrong case
|
2022-09-13 13:48:29 -05:00
|
|
|
|
|
|
|
async fn _d() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `async` is written in the wrong case
|
2022-09-13 13:48:29 -05:00
|
|
|
|
|
|
|
const unsafe fn _e() {}
|
2023-04-26 19:53:06 -05: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 13:48:29 -05:00
|
|
|
|
|
|
|
unsafe extern fn _f() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `unsafe` is written in the wrong case
|
|
|
|
//~| ERROR keyword `extern` is written in the wrong case
|
2022-09-13 13:48:29 -05:00
|
|
|
|
|
|
|
extern "C" fn _g() {}
|
2023-04-26 19:53:06 -05:00
|
|
|
//~^ ERROR keyword `extern` is written in the wrong case
|
|
|
|
//~| ERROR keyword `fn` is written in the wrong case
|