summaryrefslogtreecommitdiffstats
path: root/tests/ui/pub/pub-restricted-error.rs
blob: 60fce3f51b82f229abb97fa1165a8f6f9d0ff41d (plain)
1
2
3
4
5
6
7
struct Bar(pub(()));

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

fn main() {}