rustc/tests/ui/pub/pub-ident-fn.fixed
2024-06-21 09:39:33 +02:00

9 lines
131 B
Plaintext

//@ run-rustfix
pub fn foo(_s: usize) -> bool { true }
//~^ ERROR missing `fn` for function definition
fn main() {
foo(2);
}