]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-deprecation.rs
Auto merge of #106952 - petrochenkov:docglob, r=notriddle,GuillaumeGomez
[rust.git] / tests / ui / macros / macro-deprecation.rs
1 // check-pass
2 // aux-build:deprecated-macros.rs
3
4 #[macro_use] extern crate deprecated_macros;
5
6 #[deprecated(since = "1.0.0", note = "local deprecation note")]
7 #[macro_export]
8 macro_rules! local_deprecated{ () => () }
9
10 fn main() {
11     local_deprecated!(); //~ WARN use of deprecated macro `local_deprecated`: local deprecation note
12     deprecated_macro!(); //~ WARN use of deprecated macro `deprecated_macro`: deprecation note
13 }