]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/def_id_nocore.stderr
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[rust.git] / src / tools / clippy / 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:27:19
3    |
4 LL |     pub fn as_ref(self) -> &'static str {
5    |                   ^^^^
6    |
7    = help: consider choosing a less ambiguous name
8    = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
9
10 error: aborting due to previous error
11