]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/wrong_self_convention2.stderr
Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / wrong_self_convention2.stderr
1 error: methods called `from_*` usually take no `self`
2   --> $DIR/wrong_self_convention2.rs:54:29
3    |
4 LL |         pub fn from_be_self(self) -> Self {
5    |                             ^^^^
6    |
7    = help: consider choosing a less ambiguous name
8    = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
9
10 error: methods called `from_*` usually take no `self`
11   --> $DIR/wrong_self_convention2.rs:63:25
12    |
13 LL |         fn from_be_self(self) -> Self;
14    |                         ^^^^
15    |
16    = help: consider choosing a less ambiguous name
17
18 error: aborting due to 2 previous errors
19