about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/wrong_self_conventions_mut.stderr
blob: 5ea2e8192efeea9a069cd112b9489d9e48122181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
  --> tests/ui/wrong_self_conventions_mut.rs:14:24
   |
LL |         pub fn to_many(&mut self) -> Option<&mut [T]> {
   |                        ^^^^^^^^^
   |
   = help: consider choosing a less ambiguous name
   = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`

error: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference
  --> tests/ui/wrong_self_conventions_mut.rs:24:28
   |
LL |         pub fn to_many_mut(&self) -> Option<&[T]> {
   |                            ^^^^^
   |
   = help: consider choosing a less ambiguous name

error: aborting due to 2 previous errors