summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-deprecation.rs
blob: a7f327cf53b1e1f811a350f419f485a0a6178d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass
// aux-build:deprecated-macros.rs

#[macro_use] extern crate deprecated_macros;

#[deprecated(since = "1.0.0", note = "local deprecation note")]
#[macro_export]
macro_rules! local_deprecated{ () => () }

fn main() {
    local_deprecated!(); //~ WARN use of deprecated macro `local_deprecated`: local deprecation note
    deprecated_macro!(); //~ WARN use of deprecated macro `deprecated_macro`: deprecation note
}