rust/tests/ui/pub/pub-restricted-error.rs

8 lines
111 B
Rust

struct Bar(pub(()));
struct Foo {
pub(crate) () foo: usize, //~ ERROR expected identifier
}
fn main() {}