warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:9: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:23:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:14:5 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:29:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:39:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:48:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:57:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:62:9 | LL | mut a: i32, | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:107: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:69:9 | LL | let mut a = 3; | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:71:9 | LL | let mut a = 2; | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:73:9 | LL | let mut b = 3; | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:75: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:77: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:79:9 | LL | let mut a; | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:83:9 | LL | let mut b; | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:92:9 | LL | mut x => {} | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:99:10 | LL | (mut x, 1) | | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> $DIR/lint-unused-mut-variables.rs:112: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:117: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:120: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:132: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:187: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:109: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:127: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:205:9 | LL | let mut b = vec![2]; | ----^ | | | help: remove this `mut` | note: the lint level is defined here --> $DIR/lint-unused-mut-variables.rs:201:8 | LL | #[deny(unused_mut)] | ^^^^^^^^^^ error: aborting due to previous error; 25 warnings emitted