summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/capture-mut-ref.stderr
blob: 4898d569235e73d1b7cc13ecd991970d0ac70ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: variable does not need to be mutable
  --> $DIR/capture-mut-ref.rs:9:9
   |
LL |     let mut x = &mut 0;
   |         ----^
   |         |
   |         help: remove this `mut`
   |
note: the lint level is defined here
  --> $DIR/capture-mut-ref.rs:6:9
   |
LL | #![deny(unused_mut)]
   |         ^^^^^^^^^^

error: aborting due to previous error