|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:8:5 | 
|  | | | 
|  | LL |     mut a: i32, | 
|  | |     ----^ | 
|  | |     | | 
|  | |     help: remove this `mut` | 
|  | | | 
|  | note: the lint level is defined here | 
|  | --> $DIR/lint-unused-mut-variables.rs:5:9 | 
|  | | | 
|  | LL | #![warn(unused_mut)] | 
|  | |         ^^^^^^^^^^ | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:22:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:13:5 | 
|  | | | 
|  | LL |     mut a: i32, | 
|  | |     ----^ | 
|  | |     | | 
|  | |     help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:28:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:38:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:47:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:56:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:61:9 | 
|  | | | 
|  | LL |         mut a: i32, | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:106:14 | 
|  | | | 
|  | LL |     let x = |mut y: isize| 10; | 
|  | |              ----^ | 
|  | |              | | 
|  | |              help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:68:9 | 
|  | | | 
|  | LL |     let mut a = 3; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:70:9 | 
|  | | | 
|  | LL |     let mut a = 2; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:72:9 | 
|  | | | 
|  | LL |     let mut b = 3; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:74:9 | 
|  | | | 
|  | LL |     let mut a = vec![3]; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:76:10 | 
|  | | | 
|  | LL |     let (mut a, b) = (1, 2); | 
|  | |          ----^ | 
|  | |          | | 
|  | |          help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:78:9 | 
|  | | | 
|  | LL |     let mut a; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:82:9 | 
|  | | | 
|  | LL |     let mut b; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:91:9 | 
|  | | | 
|  | LL |         mut x => {} | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:98:10 | 
|  | | | 
|  | LL |         (mut x, 1) | | 
|  | |          ----^ | 
|  | |          | | 
|  | |          help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:111:9 | 
|  | | | 
|  | LL |     let mut a = &mut 5; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:116:9 | 
|  | | | 
|  | LL |     let mut b = (&mut a,); | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:119:9 | 
|  | | | 
|  | LL |     let mut x = &mut 1; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:131:9 | 
|  | | | 
|  | LL |     let mut v : &mut Vec<()> = &mut vec![]; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:186:9 | 
|  | | | 
|  | LL |     let mut raw_address_of_const = 1; | 
|  | |         ----^^^^^^^^^^^^^^^^^^^^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:108:13 | 
|  | | | 
|  | LL |     fn what(mut foo: isize) {} | 
|  | |             ----^^^ | 
|  | |             | | 
|  | |             help: remove this `mut` | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:126:20 | 
|  | | | 
|  | LL |     fn mut_ref_arg(mut arg : &mut [u8]) -> &mut [u8] { | 
|  | |                    ----^^^ | 
|  | |                    | | 
|  | |                    help: remove this `mut` | 
|  |  | 
|  | error: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:204:9 | 
|  | | | 
|  | LL |     let mut b = vec![2]; | 
|  | |         ----^ | 
|  | |         | | 
|  | |         help: remove this `mut` | 
|  | | | 
|  | note: the lint level is defined here | 
|  | --> $DIR/lint-unused-mut-variables.rs:200:8 | 
|  | | | 
|  | LL | #[deny(unused_mut)] | 
|  | |        ^^^^^^^^^^ | 
|  |  | 
|  | warning: variable does not need to be mutable | 
|  | --> $DIR/lint-unused-mut-variables.rs:211:28 | 
|  | | | 
|  | LL | fn write_through_reference(mut arg: &mut Arg) { | 
|  | |                            ----^^^ | 
|  | |                            | | 
|  | |                            help: remove this `mut` | 
|  |  | 
|  | error: aborting due to 1 previous error; 26 warnings emitted | 
|  |  |