rust/tests/ui/wrong_self_convention2.stderr

21 lines
687 B
Plaintext
Raw Normal View History

error: methods called `from_*` usually take no `self`
2024-02-17 06:16:29 -06:00
--> tests/ui/wrong_self_convention2.rs:54:29
|
LL | pub fn from_be_self(self) -> Self {
| ^^^^
|
= help: consider choosing a less ambiguous name
2022-09-22 11:04:22 -05:00
= 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`
2024-02-17 06:16:29 -06:00
--> tests/ui/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