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

8 lines
111 B
Rust
Raw Normal View History

struct Bar(pub(()));
struct Foo {
2017-11-20 12:13:27 +00:00
pub(crate) () foo: usize, //~ ERROR expected identifier
}
fn main() {}