]> git.lizzy.rs Git - rust.git/blob - tests/ui/def_id_nocore.stderr
wrong_self_convention: fix lint in case of `to_*_mut` method
[rust.git] / tests / ui / def_id_nocore.stderr
1 error: methods called `as_*` usually take self by reference or self by mutable reference
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    = help: consider choosing a less ambiguous name
9
10 error: aborting due to previous error
11