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
|