]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_fn_self_type.stderr
Lint against `Self` as an arbitrary self type
[rust.git] / tests / ui / needless_fn_self_type.stderr
1 error: the type of the `self` parameter is already by default `Self`
2   --> $DIR/needless_fn_self_type.rs:11:28
3    |
4 LL |     pub fn bytes_bad(self: Self) -> usize {
5    |                            ^^^^
6    |
7    = note: `-D clippy::needless-fn-self-type` implied by `-D warnings`
8    = help: consider removing the type specification
9
10 error: aborting due to previous error
11