2021-03-18 13:45:13 -05:00
|
|
|
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
2021-09-28 10:33:58 -05:00
|
|
|
--> $DIR/def_id_nocore.rs:27:19
|
2019-08-26 05:11:47 -05:00
|
|
|
|
|
|
|
|
LL | pub fn as_ref(self) -> &'static str {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
2021-03-12 01:47:15 -06:00
|
|
|
= help: consider choosing a less ambiguous name
|
2019-08-26 05:11:47 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|