]> git.lizzy.rs Git - rust.git/blob - tests/ui/wrong_self_conventions_mut.stderr
Auto merge of #6915 - smoelius:docs-link, r=llogiq
[rust.git] / tests / ui / wrong_self_conventions_mut.stderr
1 error: methods called `to_*` 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 called like this: (`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