2019-07-06 01:58:52 +03:00
|
|
|
// check-pass
|
2019-06-22 02:44:45 +03:00
|
|
|
// 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() {
|
2020-07-25 13:49:46 -04:00
|
|
|
local_deprecated!(); //~ WARN use of deprecated macro `local_deprecated`: local deprecation note
|
|
|
|
deprecated_macro!(); //~ WARN use of deprecated macro `deprecated_macro`: deprecation note
|
2019-06-22 02:44:45 +03:00
|
|
|
}
|