rust/src/test/ui/proc-macro/attributes-on-definitions.rs
Andy Russell 0b32008642
report kind of deprecated item in message
This is important for fields, which are incorrectly referred to as
"items".
2020-07-26 13:58:31 -04:00

13 lines
280 B
Rust

// check-pass
// aux-build:attributes-on-definitions.rs
#![forbid(unsafe_code)]
extern crate attributes_on_definitions;
attributes_on_definitions::with_attrs!();
//~^ WARN use of deprecated
// No errors about the use of unstable and unsafe code inside the macro.
fn main() {}