rust-clippy/tests/ui/deref_addrof_double_trigger.stderr

23 lines
634 B
Text
Raw Normal View History

error: immediately dereferencing a reference
--> $DIR/deref_addrof_double_trigger.rs:10:14
|
LL | let b = **&&a;
2023-07-01 11:08:01 +00:00
| ^^^^ 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;
2023-07-01 11:08:01 +00:00
| ^^^^^^^ help: try: `x`
error: immediately dereferencing a reference
--> $DIR/deref_addrof_double_trigger.rs:21:18
|
LL | let y = **&mut &mut x;
2023-07-01 11:08:01 +00:00
| ^^^^^^^^^^^^ help: try: `&mut x`
error: aborting due to 3 previous errors