]> git.lizzy.rs Git - rust.git/blob - tests/ui/wrong_self_convention2.stderr
Auto merge of #7047 - camsteffen:lang-ctor, r=flip1995
[rust.git] / tests / ui / wrong_self_convention2.stderr
1 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
2   --> $DIR/wrong_self_convention2.rs:28:19
3    |
4 LL |         fn to_u64(self) -> u64 {
5    |                   ^^^^
6    |
7    = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
8    = help: consider choosing a less ambiguous name
9
10 error: aborting due to previous error
11