]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/mut_reference.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mut_reference.stderr
1 error: the function `takes_an_immutable_reference` doesn't need a mutable reference
2 --> $DIR/mut_reference.rs:17:34
3 |
4 LL | takes_an_immutable_reference(&mut 42);
5 | ^^^^^^^
6 |
7 = note: `-D clippy::unnecessary-mut-passed` implied by `-D warnings`
8
9 error: the function `as_ptr` doesn't need a mutable reference
10 --> $DIR/mut_reference.rs:19:12
11 |
12 LL | as_ptr(&mut 42);
13 | ^^^^^^^
14
15 error: the method `takes_an_immutable_reference` doesn't need a mutable reference
16 --> $DIR/mut_reference.rs:23:44
17 |
18 LL | my_struct.takes_an_immutable_reference(&mut 42);
19 | ^^^^^^^
20
21 error: aborting due to 3 previous errors
22