rust-clippy/tests/ui/deref_addrof_double_trigger.stderr

23 lines
648 B
Text
Raw Normal View History

error: immediately dereferencing a reference
--> $DIR/deref_addrof_double_trigger.rs:8:14
|
LL | let b = **&&a;
| ^^^^ help: try this: `&a`
|
= note: `-D clippy::deref-addrof` implied by `-D warnings`
error: immediately dereferencing a reference
--> $DIR/deref_addrof_double_trigger.rs:12:17
|
LL | let y = *&mut x;
| ^^^^^^^ help: try this: `x`
error: immediately dereferencing a reference
--> $DIR/deref_addrof_double_trigger.rs:19:18
|
LL | let y = **&mut &mut x;
| ^^^^^^^^^^^^ help: try this: `&mut x`
error: aborting due to 3 previous errors