summary refs log tree commit diff
path: root/src/test/ui/pub/pub-restricted-error.rs
blob: 30a112d2271b9d53ddb8979e5cef011cefefb3a3 (plain)
1
2
3
4
5
6
7
8
9
#![feature(pub_restricted)]

struct Bar(pub(()));

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

fn main() {}