mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
21 lines
679 B
Plaintext
21 lines
679 B
Plaintext
error: methods called `from_*` usually take no `self`
|
|
--> $DIR/wrong_self_convention2.rs:54:29
|
|
|
|
|
LL | pub fn from_be_self(self) -> Self {
|
|
| ^^^^
|
|
|
|
|
= 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 called `from_*` usually take no `self`
|
|
--> $DIR/wrong_self_convention2.rs:64:25
|
|
|
|
|
LL | fn from_be_self(self) -> Self;
|
|
| ^^^^
|
|
|
|
|
= help: consider choosing a less ambiguous name
|
|
|
|
error: aborting due to 2 previous errors
|
|
|