summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/needless_arbitrary_self_type_unfixable.stderr
blob: e91359a3cc182f7ad49360a09bc513e6e6b0fdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type_unfixable.rs:42:31
   |
LL |         fn call_with_mut_self(self: &mut Self) {}
   |                               ^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self`
   |
   = note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_arbitrary_self_type)]`

error: aborting due to 1 previous error