]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/wrong_self_conventions_mut.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / wrong_self_conventions_mut.stderr
1 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
2   --> $DIR/wrong_self_conventions_mut.rs:15:24
3    |
4 LL |         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
10 error: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference
11   --> $DIR/wrong_self_conventions_mut.rs:23:28
12    |
13 LL |         pub fn to_many_mut(&self) -> Option<&[T]> {
14    |                            ^^^^^
15    |
16    = help: consider choosing a less ambiguous name
17
18 error: aborting due to 2 previous errors
19