rust-clippy/tests/ui/deref_addrof_macro.rs

14 lines
201 B
Rust
Raw Normal View History

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