1
Fork 0
rust/tests/ui/pub/pub-restricted-error-fn.rs

3 lines
123 B
Rust
Raw Normal View History

2020-02-23 12:54:00 +01:00
pub(crate) () fn foo() {} //~ ERROR visibility `pub(crate)` is not followed by an item
//~^ ERROR expected item, found `(`