]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-allow-internal-unstable-struct.rs
1 // checks that this attribute is caught on non-macro items.
2 // this needs a different test since this is done after expansion
3
4 #[allow_internal_unstable()] //~ ERROR allow_internal_unstable side-steps
5 //~| ERROR attribute should
6 struct S;
7
8 fn main() {}