rust/tests/ui/pub/pub-restricted-error-fn.rs
2023-01-11 09:32:08 +00:00

3 lines
123 B
Rust

pub(crate) () fn foo() {} //~ ERROR visibility `pub(crate)` is not followed by an item
//~^ ERROR expected item, found `(`