mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
23 lines
649 B
Plaintext
23 lines
649 B
Plaintext
error: immediately dereferencing a reference
|
|
--> $DIR/deref_addrof_double_trigger.rs:10: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:14:17
|
|
|
|
|
LL | let y = *&mut x;
|
|
| ^^^^^^^ help: try this: `x`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/deref_addrof_double_trigger.rs:21:18
|
|
|
|
|
LL | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^ help: try this: `&mut x`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|