2021-03-25 18:29:11 +00:00
|
|
|
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/def_id_nocore.rs:27:19
|
2019-08-26 10:11:47 +00:00
|
|
|
|
|
|
|
|
LL | pub fn as_ref(self) -> &'static str {
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-03-25 18:29:11 +00:00
|
|
|
= help: consider choosing a less ambiguous name
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
|
2019-08-26 10:11:47 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-08-26 10:11:47 +00:00
|
|
|
|