]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-73592-borrow_mut-through-deref.stderr
Auto merge of #107197 - aliemjay:patch-2, r=jackh726
[rust.git] / tests / ui / typeck / issue-73592-borrow_mut-through-deref.stderr
1 warning: variable does not need to be mutable
2   --> $DIR/issue-73592-borrow_mut-through-deref.rs:42:17
3    |
4 LL | fn test_mut_pin(mut s: Pin<&S>) {
5    |                 ----^
6    |                 |
7    |                 help: remove this `mut`
8    |
9 note: the lint level is defined here
10   --> $DIR/issue-73592-borrow_mut-through-deref.rs:20:9
11    |
12 LL | #![warn(unused_mut)]
13    |         ^^^^^^^^^^
14
15 warning: variable does not need to be mutable
16   --> $DIR/issue-73592-borrow_mut-through-deref.rs:47:21
17    |
18 LL | fn test_mut_pin_mut(mut s: Pin<&mut S>) {
19    |                     ----^
20    |                     |
21    |                     help: remove this `mut`
22
23 warning: 2 warnings emitted
24