rust/tests/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
301 B
Rust
Raw Normal View History

// gate-test-allow_internal_unstable
2017-05-12 07:53:58 +00:00
#![allow(unused_macros)]
macro_rules! bar {
() => {
// more layers don't help:
#[allow_internal_unstable()] //~ ERROR allow_internal_unstable side-steps
macro_rules! baz {
() => {}
}
}
}
bar!();
fn main() {}