1 error: variable does not need to be mutable
2 --> $DIR/lint-unused-mut-variables.rs:59:14
4 LL | let x = |mut y: isize| 10; //[lexical]~ ERROR: variable does not need to be mutable
7 | help: remove this `mut`
9 note: lint level defined here
10 --> $DIR/lint-unused-mut-variables.rs:19:9
12 LL | #![deny(unused_mut)]
15 error: variable does not need to be mutable
16 --> $DIR/lint-unused-mut-variables.rs:24:9
18 LL | let mut a = 3; //[lexical]~ ERROR: variable does not need to be mutable
21 | help: remove this `mut`
23 error: variable does not need to be mutable
24 --> $DIR/lint-unused-mut-variables.rs:26:9
26 LL | let mut a = 2; //[lexical]~ ERROR: variable does not need to be mutable
29 | help: remove this `mut`
31 error: variable does not need to be mutable
32 --> $DIR/lint-unused-mut-variables.rs:28:9
34 LL | let mut b = 3; //[lexical]~ ERROR: variable does not need to be mutable
37 | help: remove this `mut`
39 error: variable does not need to be mutable
40 --> $DIR/lint-unused-mut-variables.rs:30:9
42 LL | let mut a = vec![3]; //[lexical]~ ERROR: variable does not need to be mutable
45 | help: remove this `mut`
47 error: variable does not need to be mutable
48 --> $DIR/lint-unused-mut-variables.rs:32:10
50 LL | let (mut a, b) = (1, 2); //[lexical]~ ERROR: variable does not need to be mutable
53 | help: remove this `mut`
55 error: variable does not need to be mutable
56 --> $DIR/lint-unused-mut-variables.rs:34:9
58 LL | let mut a; //[lexical]~ ERROR: variable does not need to be mutable
61 | help: remove this `mut`
63 error: variable does not need to be mutable
64 --> $DIR/lint-unused-mut-variables.rs:38:9
66 LL | let mut b; //[lexical]~ ERROR: variable does not need to be mutable
69 | help: remove this `mut`
71 error: variable does not need to be mutable
72 --> $DIR/lint-unused-mut-variables.rs:47:9
74 LL | mut x => {} //[lexical]~ ERROR: variable does not need to be mutable
77 | help: remove this `mut`
79 error: variable does not need to be mutable
80 --> $DIR/lint-unused-mut-variables.rs:51:8
82 LL | (mut x, 1) | //[lexical]~ ERROR: variable does not need to be mutable
85 | help: remove this `mut`
87 error: variable does not need to be mutable
88 --> $DIR/lint-unused-mut-variables.rs:64:9
90 LL | let mut a = &mut 5; //[lexical]~ ERROR: variable does not need to be mutable
93 | help: remove this `mut`
95 error: variable does not need to be mutable
96 --> $DIR/lint-unused-mut-variables.rs:69:9
98 LL | let mut b = (&mut a,); //[lexical]~ ERROR: variable does not need to be mutable
101 | help: remove this `mut`
103 error: variable does not need to be mutable
104 --> $DIR/lint-unused-mut-variables.rs:72:9
106 LL | let mut x = &mut 1; //[lexical]~ ERROR: variable does not need to be mutable
109 | help: remove this `mut`
111 error: variable does not need to be mutable
112 --> $DIR/lint-unused-mut-variables.rs:84:9
114 LL | let mut v : &mut Vec<()> = &mut vec![]; //[lexical]~ ERROR: variable does not need to be mutable
117 | help: remove this `mut`
119 error: variable does not need to be mutable
120 --> $DIR/lint-unused-mut-variables.rs:61:13
122 LL | fn what(mut foo: isize) {} //[lexical]~ ERROR: variable does not need to be mutable
125 | help: remove this `mut`
127 error: variable does not need to be mutable
128 --> $DIR/lint-unused-mut-variables.rs:79:20
130 LL | fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] {
133 | help: remove this `mut`
135 error: variable does not need to be mutable
136 --> $DIR/lint-unused-mut-variables.rs:143:9
138 LL | let mut b = vec![2]; //[lexical]~ ERROR: variable does not need to be mutable
141 | help: remove this `mut`
143 note: lint level defined here
144 --> $DIR/lint-unused-mut-variables.rs:139:8
146 LL | #[deny(unused_mut)]
149 error: aborting due to 17 previous errors