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

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

11 lines
133 B
Rust
Raw Normal View History

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