mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 07:34:18 +00:00
11 lines
191 B
Rust
11 lines
191 B
Rust
|
macro_rules! m {
|
||
|
($($x:tt),*) => { &[$(($x, stringify!(x)),)*] };
|
||
|
}
|
||
|
|
||
|
#[warn(clippy::deref_addrof)]
|
||
|
fn f() -> [(i32, &'static str); 3] {
|
||
|
*m![1, 2, 3] // should be fine
|
||
|
}
|
||
|
|
||
|
fn main() {}
|