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
137 B
Rust
Raw Normal View History

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