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

11 lines
137 B
Plaintext

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