mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
23 lines
720 B
Text
23 lines
720 B
Text
error: immediately dereferencing a reference
|
|
--> tests/ui/deref_addrof_double_trigger.rs:10:14
|
|
|
|
|
LL | let b = **&&a;
|
|
| ^^^^ help: try: `&a`
|
|
|
|
|
= note: `-D clippy::deref-addrof` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::deref_addrof)]`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> tests/ui/deref_addrof_double_trigger.rs:16:17
|
|
|
|
|
LL | let y = *&mut x;
|
|
| ^^^^^^^ help: try: `x`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> tests/ui/deref_addrof_double_trigger.rs:24:18
|
|
|
|
|
LL | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^ help: try: `&mut x`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|