]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-allow-internal-unstable-nested-macro.rs
1 // gate-test-allow_internal_unstable
2
3 #![allow(unused_macros)]
4
5 macro_rules! bar {
6     () => {
7         // more layers don't help:
8         #[allow_internal_unstable()] //~ ERROR allow_internal_unstable side-steps
9         macro_rules! baz {
10             () => {}
11         }
12     }
13 }
14
15 bar!();
16
17 fn main() {}