]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name |
2 | --> $DIR/def_id_nocore.rs:26:19 | |
3 | | | |
4 | LL | pub fn as_ref(self) -> &'static str { | |
5 | | ^^^^ | |
6 | | | |
7 | = note: `-D clippy::wrong-self-convention` implied by `-D warnings` | |
8 | ||
9 | error: aborting due to previous error | |
10 |