We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3345d0f commit 1f776c0Copy full SHA for 1f776c0
1 file changed
tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr
@@ -2,10 +2,11 @@ error[E0053]: method `drop` has an incompatible type for trait
2
--> tests/ui/compile-fail/pinned_drop/wrong_receiver.rs:8:13
3
|
4
8 | fn drop(&mut self) {}
5
- | ^^^^^^^^^
6
- | |
7
- | expected `Pin<&mut Foo>`, found `&mut Foo`
8
- | help: change the self-receiver type to match the trait: `self: Pin<&mut Foo>`
+ | ^^^^^^^^^ expected `Pin<&mut Foo>`, found `&mut Foo`
9
10
= note: expected signature `fn(Pin<&mut Foo>, OnlyCallFromDrop)`
11
found signature `fn(&mut Foo, OnlyCallFromDrop)`
+help: change the self-receiver type to match the trait
+ |
+8 | fn drop(self: Pin<&mut Foo>) {}
12
+ | ~~~~~~~~~~~~~~~~~~~
0 commit comments