Skip to content

Commit 1f776c0

Browse files
committed
tests: ui: compile-fail: pinned_drop: wrong_receiver: fix nightly output
1 parent 3345d0f commit 1f776c0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/ui/compile-fail/pinned_drop/wrong_receiver.stderr

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ error[E0053]: method `drop` has an incompatible type for trait
22
--> tests/ui/compile-fail/pinned_drop/wrong_receiver.rs:8:13
33
|
44
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>`
5+
| ^^^^^^^^^ expected `Pin<&mut Foo>`, found `&mut Foo`
96
|
107
= note: expected signature `fn(Pin<&mut Foo>, OnlyCallFromDrop)`
118
found signature `fn(&mut Foo, OnlyCallFromDrop)`
9+
help: change the self-receiver type to match the trait
10+
|
11+
8 | fn drop(self: Pin<&mut Foo>) {}
12+
| ~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)