fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2// edition:2018 3#![allow(unused_imports)] 4 5fn main() {} 6 7use std::ptr::read; //~ ERROR keyword `use` is written in the wrong case 8use std::ptr::write; //~ ERROR keyword `use` is written in the wrong case 9 10async fn _a() {} 11//~^ ERROR keyword `fn` is written in the wrong case 12 13fn _b() {} 14//~^ ERROR keyword `fn` is written in the wrong case 15 16async fn _c() {} 17//~^ ERROR keyword `async` is written in the wrong case 18//~| ERROR keyword `fn` is written in the wrong case 19 20async fn _d() {} 21//~^ ERROR keyword `async` is written in the wrong case 22 23const unsafe fn _e() {} 24//~^ ERROR keyword `const` is written in the wrong case 25//~| ERROR keyword `unsafe` is written in the wrong case 26//~| ERROR keyword `fn` is written in the wrong case 27 28unsafe extern fn _f() {} 29//~^ ERROR keyword `unsafe` is written in the wrong case 30//~| ERROR keyword `extern` is written in the wrong case 31 32extern "C" fn _g() {} 33//~^ ERROR keyword `extern` is written in the wrong case 34//~| ERROR keyword `fn` is written in the wrong case