summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/issue-112036.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/mismatched_types/issue-112036.stderr')
-rw-r--r--tests/ui/mismatched_types/issue-112036.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/mismatched_types/issue-112036.stderr b/tests/ui/mismatched_types/issue-112036.stderr
new file mode 100644
index 000000000..a883aba35
--- /dev/null
+++ b/tests/ui/mismatched_types/issue-112036.stderr
@@ -0,0 +1,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 previous error
+
+For more information about this error, try `rustc --explain E0053`.