rust/tests/ui/pub/pub-ident-fn-2.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
136 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// run-rustfix
pub fn foo(_s: usize) { bar() }
//~^ ERROR missing `fn` for function definition
fn bar() {}
fn main() {
foo(2);
}