1 #![feature(pub_restricted)]
5 pub (a) fn afn() {} //~ incorrect visibility restriction
6 pub (b) fn bfn() {} //~ incorrect visibility restriction
7 pub (crate::a) fn cfn() {} //~ incorrect visibility restriction
12 pub (in x) fn foo() {}
13 pub (super) fn bar() {}
14 pub (crate) fn qux() {}
23 pub (in y) valid_in_x: usize,
24 pub (a) invalid: usize, //~ incorrect visibility restriction
25 pub (in x) non_parent_invalid: usize, //~ ERROR visibilities can only be restricted
31 // test multichar names
33 pub (xyz) fn xyz() {} //~ incorrect visibility restriction