summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-73592-borrow_mut-through-deref.stderr
blob: 5f5f672c3843a1de8cedcc3b94a774cd138329ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
warning: variable does not need to be mutable
  --> $DIR/issue-73592-borrow_mut-through-deref.rs:42:17
   |
LL | fn test_mut_pin(mut s: Pin<&S>) {
   |                 ----^
   |                 |
   |                 help: remove this `mut`
   |
note: the lint level is defined here
  --> $DIR/issue-73592-borrow_mut-through-deref.rs:20:9
   |
LL | #![warn(unused_mut)]
   |         ^^^^^^^^^^

warning: variable does not need to be mutable
  --> $DIR/issue-73592-borrow_mut-through-deref.rs:47:21
   |
LL | fn test_mut_pin_mut(mut s: Pin<&mut S>) {
   |                     ----^
   |                     |
   |                     help: remove this `mut`

warning: 2 warnings emitted