]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-deprecation.rs
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors
[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 }