]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-restricted-error-fn.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / pub / pub-restricted-error-fn.rs
1 pub(crate) () fn foo() {} //~ ERROR visibility `pub(crate)` is not followed by an item
2 //~^ ERROR expected item, found `(`