]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/wrong_self_conventions_mut.stderr
New upstream version 1.58.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / wrong_self_conventions_mut.stderr
CommitLineData
cdc7bbd5 1error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
3c0e092e 2 --> $DIR/wrong_self_conventions_mut.rs:14:24
cdc7bbd5
XL
3 |
4LL | pub fn to_many(&mut self) -> Option<&mut [T]> {
5 | ^^^^^^^^^
6 |
7 = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
8 = help: consider choosing a less ambiguous name
9
10error: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference
3c0e092e 11 --> $DIR/wrong_self_conventions_mut.rs:22:28
cdc7bbd5
XL
12 |
13LL | pub fn to_many_mut(&self) -> Option<&[T]> {
14 | ^^^^^
15 |
16 = help: consider choosing a less ambiguous name
17
18error: aborting due to 2 previous errors
19