]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
1 | error: The function/method `takes_an_immutable_reference` doesn't need a mutable reference |
2 | --> $DIR/mut_reference.rs:22:34 | |
3 | | | |
4 | 22 | takes_an_immutable_reference(&mut 42); | |
5 | | ^^^^^^^ | |
6 | | | |
7 | = note: `-D unnecessary-mut-passed` implied by `-D warnings` | |
8 | ||
9 | error: The function/method `as_ptr` doesn't need a mutable reference | |
10 | --> $DIR/mut_reference.rs:24:12 | |
11 | | | |
12 | 24 | as_ptr(&mut 42); | |
13 | | ^^^^^^^ | |
14 | ||
15 | error: The function/method `takes_an_immutable_reference` doesn't need a mutable reference | |
16 | --> $DIR/mut_reference.rs:28:44 | |
17 | | | |
18 | 28 | my_struct.takes_an_immutable_reference(&mut 42); | |
19 | | ^^^^^^^ | |
20 |