]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/mut_mut.stderr
abd6997018c6199a988ad856c0862e3962f7ed1f
[rust.git] / clippy_tests / examples / mut_mut.stderr
1 error: generally you want to avoid `&mut &mut _` if possible
2   --> mut_mut.rs:10:12
3    |
4 10 | fn fun(x : &mut &mut u32) -> bool {
5    |            ^^^^^^^^^^^^^
6    |
7    = note: `-D mut-mut` implied by `-D warnings`
8
9 error: generally you want to avoid `&mut &mut _` if possible
10   --> mut_mut.rs:24:17
11    |
12 24 |     let mut x = &mut &mut 1u32;
13    |                 ^^^^^^^^^^^^^^
14    |
15    = note: `-D mut-mut` implied by `-D warnings`
16
17 error: generally you want to avoid `&mut &mut _` if possible
18   --> mut_mut.rs:19:20
19    |
20 19 |     ($p:expr) => { &mut $p }
21    |                    ^^^^^^^
22 ...
23 39 |     let mut z = mut_ptr!(&mut 3u32);
24    |                 ------------------- in this macro invocation
25    |
26    = note: `-D mut-mut` implied by `-D warnings`
27
28 error: this expression mutably borrows a mutable reference. Consider reborrowing
29   --> mut_mut.rs:26:21
30    |
31 26 |         let mut y = &mut x;
32    |                     ^^^^^^
33    |
34    = note: `-D mut-mut` implied by `-D warnings`
35
36 error: generally you want to avoid `&mut &mut _` if possible
37   --> mut_mut.rs:30:17
38    |
39 30 |         let y : &mut &mut u32 = &mut &mut 2;
40    |                 ^^^^^^^^^^^^^
41    |
42    = note: `-D mut-mut` implied by `-D warnings`
43
44 error: generally you want to avoid `&mut &mut _` if possible
45   --> mut_mut.rs:30:33
46    |
47 30 |         let y : &mut &mut u32 = &mut &mut 2;
48    |                                 ^^^^^^^^^^^
49    |
50    = note: `-D mut-mut` implied by `-D warnings`
51
52 error: generally you want to avoid `&mut &mut _` if possible
53   --> mut_mut.rs:30:17
54    |
55 30 |         let y : &mut &mut u32 = &mut &mut 2;
56    |                 ^^^^^^^^^^^^^
57    |
58    = note: `-D mut-mut` implied by `-D warnings`
59
60 error: generally you want to avoid `&mut &mut _` if possible
61   --> mut_mut.rs:35:17
62    |
63 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
64    |                 ^^^^^^^^^^^^^^^^^^
65    |
66    = note: `-D mut-mut` implied by `-D warnings`
67
68 error: generally you want to avoid `&mut &mut _` if possible
69   --> mut_mut.rs:35:22
70    |
71 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
72    |                      ^^^^^^^^^^^^^
73    |
74    = note: `-D mut-mut` implied by `-D warnings`
75
76 error: generally you want to avoid `&mut &mut _` if possible
77   --> mut_mut.rs:35:38
78    |
79 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
80    |                                      ^^^^^^^^^^^^^^^^
81    |
82    = note: `-D mut-mut` implied by `-D warnings`
83
84 error: generally you want to avoid `&mut &mut _` if possible
85   --> mut_mut.rs:35:17
86    |
87 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
88    |                 ^^^^^^^^^^^^^^^^^^
89    |
90    = note: `-D mut-mut` implied by `-D warnings`
91
92 error: generally you want to avoid `&mut &mut _` if possible
93   --> mut_mut.rs:35:22
94    |
95 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
96    |                      ^^^^^^^^^^^^^
97    |
98    = note: `-D mut-mut` implied by `-D warnings`
99
100 error: generally you want to avoid `&mut &mut _` if possible
101   --> mut_mut.rs:35:22
102    |
103 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
104    |                      ^^^^^^^^^^^^^
105    |
106    = note: `-D mut-mut` implied by `-D warnings`
107
108 error: aborting due to previous error(s)
109
110 error: Could not compile `clippy_tests`.
111
112 To learn more, run the command again with --verbose.