summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/issue-112036.stderr
blob: b93ce4a8674c2e6113a75cecf10280b940a5b420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0053]: method `drop` has an incompatible type for trait
  --> $DIR/issue-112036.rs:4:13
   |
LL |     fn drop(self) {}
   |             ^^^^
   |             |
   |             expected `&mut Foo`, found `Foo`
   |             help: change the self-receiver type to match the trait: `&mut self`
   |
   = note: expected signature `fn(&mut Foo)`
              found signature `fn(Foo)`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0053`.