summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-restricted-error-fn.rs
blob: fc1aeae2b0cf46caffcad8bae443ca218ef0a758 (plain)
1
2
pub(crate) () fn foo() {} //~ ERROR visibility `pub(crate)` is not followed by an item
//~^ ERROR expected item, found `(`