1 error: variable does not need to be mutable
2 --> $DIR/lint-unused-mut-variables.rs:9:5
7 | help: remove this `mut`
9 note: lint level defined here
10 --> $DIR/lint-unused-mut-variables.rs:5:9
12 LL | #![deny(unused_mut)]
15 error: variable does not need to be mutable
16 --> $DIR/lint-unused-mut-variables.rs:14:5
21 | help: remove this `mut`
23 error: variable does not need to be mutable
24 --> $DIR/lint-unused-mut-variables.rs:23:9
29 | help: remove this `mut`
31 error: variable does not need to be mutable
32 --> $DIR/lint-unused-mut-variables.rs:29:9
37 | help: remove this `mut`
39 error: variable does not need to be mutable
40 --> $DIR/lint-unused-mut-variables.rs:39:9
45 | help: remove this `mut`
47 error: variable does not need to be mutable
48 --> $DIR/lint-unused-mut-variables.rs:48:9
53 | help: remove this `mut`
55 error: variable does not need to be mutable
56 --> $DIR/lint-unused-mut-variables.rs:57:9
61 | help: remove this `mut`
63 error: variable does not need to be mutable
64 --> $DIR/lint-unused-mut-variables.rs:62:9
69 | help: remove this `mut`
71 error: 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 error: variable does not need to be mutable
80 --> $DIR/lint-unused-mut-variables.rs:69:9
85 | help: remove this `mut`
87 error: variable does not need to be mutable
88 --> $DIR/lint-unused-mut-variables.rs:71:9
93 | help: remove this `mut`
95 error: variable does not need to be mutable
96 --> $DIR/lint-unused-mut-variables.rs:73:9
101 | help: remove this `mut`
103 error: 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 error: 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 error: variable does not need to be mutable
120 --> $DIR/lint-unused-mut-variables.rs:79:9
125 | help: remove this `mut`
127 error: variable does not need to be mutable
128 --> $DIR/lint-unused-mut-variables.rs:83:9
133 | help: remove this `mut`
135 error: variable does not need to be mutable
136 --> $DIR/lint-unused-mut-variables.rs:92:9
141 | help: remove this `mut`
143 error: variable does not need to be mutable
144 --> $DIR/lint-unused-mut-variables.rs:96:8
149 | help: remove this `mut`
151 error: 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 error: 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 error: 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 error: 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 error: variable does not need to be mutable
184 --> $DIR/lint-unused-mut-variables.rs:106:13
186 LL | fn what(mut foo: isize) {}
189 | help: remove this `mut`
191 error: variable does not need to be mutable
192 --> $DIR/lint-unused-mut-variables.rs:124:20
194 LL | fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] {
197 | help: remove this `mut`
199 error: variable does not need to be mutable
200 --> $DIR/lint-unused-mut-variables.rs:196:9
202 LL | let mut b = vec![2];
205 | help: remove this `mut`
207 note: lint level defined here
208 --> $DIR/lint-unused-mut-variables.rs:192:8
210 LL | #[deny(unused_mut)]
213 error: aborting due to 25 previous errors