1 warning: variable does not need to be mutable
2 --> $DIR/lint-unused-mut-variables.rs:9:5
7 | help: remove this `mut`
9 note: the lint level is defined here
10 --> $DIR/lint-unused-mut-variables.rs:5:9
12 LL | #![warn(unused_mut)]
15 warning: variable does not need to be mutable
16 --> $DIR/lint-unused-mut-variables.rs:23:9
21 | help: remove this `mut`
23 warning: variable does not need to be mutable
24 --> $DIR/lint-unused-mut-variables.rs:14:5
29 | help: remove this `mut`
31 warning: variable does not need to be mutable
32 --> $DIR/lint-unused-mut-variables.rs:29:9
37 | help: remove this `mut`
39 warning: variable does not need to be mutable
40 --> $DIR/lint-unused-mut-variables.rs:39:9
45 | help: remove this `mut`
47 warning: variable does not need to be mutable
48 --> $DIR/lint-unused-mut-variables.rs:48:9
53 | help: remove this `mut`
55 warning: variable does not need to be mutable
56 --> $DIR/lint-unused-mut-variables.rs:57:9
61 | help: remove this `mut`
63 warning: variable does not need to be mutable
64 --> $DIR/lint-unused-mut-variables.rs:62:9
69 | help: remove this `mut`
71 warning: variable does not need to be mutable
72 --> $DIR/lint-unused-mut-variables.rs:104:14
74 LL | let x = |mut y: isize| 10;
77 | help: remove this `mut`
79 warning: variable does not need to be mutable
80 --> $DIR/lint-unused-mut-variables.rs:69:9
85 | help: remove this `mut`
87 warning: variable does not need to be mutable
88 --> $DIR/lint-unused-mut-variables.rs:71:9
93 | help: remove this `mut`
95 warning: variable does not need to be mutable
96 --> $DIR/lint-unused-mut-variables.rs:73:9
101 | help: remove this `mut`
103 warning: variable does not need to be mutable
104 --> $DIR/lint-unused-mut-variables.rs:75:9
106 LL | let mut a = vec![3];
109 | help: remove this `mut`
111 warning: variable does not need to be mutable
112 --> $DIR/lint-unused-mut-variables.rs:77:10
114 LL | let (mut a, b) = (1, 2);
117 | help: remove this `mut`
119 warning: variable does not need to be mutable
120 --> $DIR/lint-unused-mut-variables.rs:79:9
125 | help: remove this `mut`
127 warning: variable does not need to be mutable
128 --> $DIR/lint-unused-mut-variables.rs:83:9
133 | help: remove this `mut`
135 warning: variable does not need to be mutable
136 --> $DIR/lint-unused-mut-variables.rs:92:9
141 | help: remove this `mut`
143 warning: variable does not need to be mutable
144 --> $DIR/lint-unused-mut-variables.rs:96:8
149 | help: remove this `mut`
151 warning: variable does not need to be mutable
152 --> $DIR/lint-unused-mut-variables.rs:109:9
154 LL | let mut a = &mut 5;
157 | help: remove this `mut`
159 warning: variable does not need to be mutable
160 --> $DIR/lint-unused-mut-variables.rs:114:9
162 LL | let mut b = (&mut a,);
165 | help: remove this `mut`
167 warning: variable does not need to be mutable
168 --> $DIR/lint-unused-mut-variables.rs:117:9
170 LL | let mut x = &mut 1;
173 | help: remove this `mut`
175 warning: variable does not need to be mutable
176 --> $DIR/lint-unused-mut-variables.rs:129:9
178 LL | let mut v : &mut Vec<()> = &mut vec![];
181 | help: remove this `mut`
183 warning: variable does not need to be mutable
184 --> $DIR/lint-unused-mut-variables.rs:184:9
186 LL | let mut raw_address_of_const = 1;
187 | ----^^^^^^^^^^^^^^^^^^^^
189 | help: remove this `mut`
191 warning: variable does not need to be mutable
192 --> $DIR/lint-unused-mut-variables.rs:106:13
194 LL | fn what(mut foo: isize) {}
197 | help: remove this `mut`
199 warning: variable does not need to be mutable
200 --> $DIR/lint-unused-mut-variables.rs:124:20
202 LL | fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] {
205 | help: remove this `mut`
207 error: variable does not need to be mutable
208 --> $DIR/lint-unused-mut-variables.rs:202:9
210 LL | let mut b = vec![2];
213 | help: remove this `mut`
215 note: the lint level is defined here
216 --> $DIR/lint-unused-mut-variables.rs:198:8
218 LL | #[deny(unused_mut)]
221 error: aborting due to previous error; 25 warnings emitted