rust/tests/ui/macros/macro-deprecation.rs

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

14 lines
428 B
Rust
Raw Normal View History

2019-07-05 22:58:52 +00:00
// 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
}