1
- error: generally you want to avoid `&mut &mut _` if possible
1
+ error: a type of form `&mut &mut _`
2
2
--> tests/ui/mut_mut.rs:15:11
3
3
|
4
4
LL | fn fun(x: &mut &mut u32) {
5
- | ^^^^^^^^^^^^^
5
+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
6
6
|
7
7
= note: `-D clippy::mut-mut` implied by `-D warnings`
8
8
= help: to override `-D warnings` add `#[allow(clippy::mut_mut)]`
@@ -25,29 +25,29 @@ error: an expression of form `&mut &mut _`
25
25
LL | let y: &mut &mut u32 = &mut &mut 2;
26
26
| ^^^^^^^^^^^ help: remove the extra `&mut`: `&mut 2`
27
27
28
- error: generally you want to avoid `&mut &mut _` if possible
28
+ error: a type of form `&mut &mut _`
29
29
--> tests/ui/mut_mut.rs:40:16
30
30
|
31
31
LL | let y: &mut &mut u32 = &mut &mut 2;
32
- | ^^^^^^^^^^^^^
32
+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
33
33
34
34
error: an expression of form `&mut &mut _`
35
35
--> tests/ui/mut_mut.rs:46:37
36
36
|
37
37
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
38
38
| ^^^^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut &mut 2`
39
39
40
- error: generally you want to avoid `&mut &mut _` if possible
40
+ error: a type of form `&mut &mut _`
41
41
--> tests/ui/mut_mut.rs:46:16
42
42
|
43
43
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
44
- | ^^^^^^^^^^^^^^^^^^
44
+ | ^^^^^^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut &mut u32`
45
45
46
- error: generally you want to avoid `&mut &mut _` if possible
46
+ error: a type of form `&mut &mut _`
47
47
--> tests/ui/mut_mut.rs:46:21
48
48
|
49
49
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
50
- | ^^^^^^^^^^^^^
50
+ | ^^^^^^^^^^^^^ help: remove the extra `&mut`: `&mut u32`
51
51
52
52
error: aborting due to 8 previous errors
53
53
0 commit comments