]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/deref_addrof_macro.rs
Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors
[rust.git] / src / tools / clippy / tests / ui / deref_addrof_macro.rs
1 macro_rules! m {
2     ($($x:tt),*) => { &[$(($x, stringify!(x)),)*] };
3 }
4
5 #[warn(clippy::deref_addrof)]
6 fn f() -> [(i32, &'static str); 3] {
7     *m![1, 2, 3] // should be fine
8 }
9
10 fn main() {}