rust/tests/ui/deref_addrof_macro.rs
2023-06-26 14:13:07 +00:00

14 lines
201 B
Rust

//@aux-build:proc_macros.rs:proc-macro
#![warn(clippy::deref_addrof)]
extern crate proc_macros;
#[proc_macros::inline_macros]
fn f() -> i32 {
// should be fine
*inline!(&$1)
}
fn main() {}