mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
22 lines
634 B
Text
22 lines
634 B
Text
error: immediately dereferencing a reference
|
|
--> $DIR/deref_addrof_double_trigger.rs:10:14
|
|
|
|
|
LL | let b = **&&a;
|
|
| ^^^^ help: try: `&a`
|
|
|
|
|
= note: `-D clippy::deref-addrof` implied by `-D warnings`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/deref_addrof_double_trigger.rs:14:17
|
|
|
|
|
LL | let y = *&mut x;
|
|
| ^^^^^^^ help: try: `x`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/deref_addrof_double_trigger.rs:21:18
|
|
|
|
|
LL | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^ help: try: `&mut x`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|