1 // This test can't work with run-rustfix because it needs two passes of test+fix
3 #[warn(clippy::deref_addrof)]
4 #[allow(unused_variables, unused_mut)]
8 //This produces a suggestion of 'let b = *&a;' which
9 //will trigger the 'clippy::deref_addrof' lint again
18 //This produces a suggestion of 'let y = *&mut x' which
19 //will trigger the 'clippy::deref_addrof' lint again
21 let y = **&mut &mut x;