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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
111 B
Rust
Raw Normal View History

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