1- error: generally you want to avoid `&mut &mut _` if possible
1+ error: a type of form `&mut &mut _`
22 --> tests/ui/mut_mut.rs:15:11
33 |
44LL | fn fun(x: &mut &mut u32) {
5- | ^^^^^^^^^^^^^
5+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
66 |
77 = note: `-D clippy::mut-mut` implied by `-D warnings`
88 = help: to override `-D warnings` add `#[allow(clippy::mut_mut)]`
@@ -25,29 +25,29 @@ error: an expression of form `&mut &mut _`
2525LL | let y: &mut &mut u32 = &mut &mut 2;
2626 | ^^^^^^^^^^^ help: remove the extra `&mut`: `&mut 2`
2727
28- error: generally you want to avoid `&mut &mut _` if possible
28+ error: a type of form `&mut &mut _`
2929 --> tests/ui/mut_mut.rs:40:16
3030 |
3131LL | let y: &mut &mut u32 = &mut &mut 2;
32- | ^^^^^^^^^^^^^
32+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
3333
3434error: an expression of form `&mut &mut _`
3535 --> tests/ui/mut_mut.rs:46:37
3636 |
3737LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
3838 | ^^^^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut &mut 2`
3939
40- error: generally you want to avoid `&mut &mut _` if possible
40+ error: a type of form `&mut &mut _`
4141 --> tests/ui/mut_mut.rs:46:16
4242 |
4343LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
44- | ^^^^^^^^^^^^^^^^^^
44+ | ^^^^^^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut &mut u32`
4545
46- error: generally you want to avoid `&mut &mut _` if possible
46+ error: a type of form `&mut &mut _`
4747 --> tests/ui/mut_mut.rs:46:21
4848 |
4949LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
50- | ^^^^^^^^^^^^^
50+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
5151
5252error: aborting due to 8 previous errors
5353
0 commit comments