2021-03-25 19:29:11 +01:00
|
|
|
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
2021-10-07 11:11:23 +02:00
|
|
|
--> $DIR/def_id_nocore.rs:28:19
|
2019-08-26 17:11:47 +07:00
|
|
|
|
|
|
|
|
LL | pub fn as_ref(self) -> &'static str {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
2021-03-25 19:29:11 +01:00
|
|
|
= help: consider choosing a less ambiguous name
|
2019-08-26 17:11:47 +07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|