diff --git a/tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr b/tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr index 2ab636e..4628806 100644 --- a/tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr +++ b/tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr @@ -2,10 +2,11 @@ error[E0053]: method `drop` has an incompatible type for trait --> tests/ui/compile-fail/pinned_drop/wrong_receiver.rs:8:13 | 8 | fn drop(&mut self) {} - | ^^^^^^^^^ - | | - | expected `Pin<&mut Foo>`, found `&mut Foo` - | help: change the self-receiver type to match the trait: `self: Pin<&mut Foo>` + | ^^^^^^^^^ expected `Pin<&mut Foo>`, found `&mut Foo` | = note: expected signature `fn(Pin<&mut Foo>, OnlyCallFromDrop)` found signature `fn(&mut Foo, OnlyCallFromDrop)` +help: change the self-receiver type to match the trait + | +8 | fn drop(self: Pin<&mut Foo>) {} + | ~~~~~~~~~~~~~~~~~~~