rust/tests/ui/pub/pub-ident-fn-or-struct.rs

5 lines
100 B
Rust

pub S (foo) bar
//~^ ERROR missing `fn` or `struct` for function or struct definition
fn main() {}