We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f015921 commit 7441d79Copy full SHA for 7441d79
1 file changed
tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr
@@ -4,8 +4,8 @@ error[E0053]: method `drop` has an incompatible type for trait
4
8 | fn drop(&mut self) {}
5
| ^^^^^^^^^ expected `Pin<&mut Foo>`, found `&mut Foo`
6
|
7
- = note: expected signature `fn(Pin<&mut Foo>, pin_init::__internal::OnlyCallFromDrop)`
8
- found signature `fn(&mut Foo, pin_init::__internal::OnlyCallFromDrop)`
+ = note: expected signature `fn(Pin<&mut Foo>, OnlyCallFromDrop)`
+ found signature `fn(&mut Foo, OnlyCallFromDrop)`
9
help: change the self-receiver type to match the trait
10
11
8 - fn drop(&mut self) {}
0 commit comments