2019-04-16 13:26:55 -05:00
|
|
|
error: immediately dereferencing a reference
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/deref_addrof_double_trigger.rs:10:14
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
|
LL | let b = **&&a;
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^ help: try: `&a`
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::deref-addrof` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::deref_addrof)]`
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/deref_addrof_double_trigger.rs:16:17
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
|
LL | let y = *&mut x;
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^ help: try: `x`
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/deref_addrof_double_trigger.rs:24:18
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
|
LL | let y = **&mut &mut x;
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^ help: try: `&mut x`
|
2019-04-16 13:26:55 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|