diff options
Diffstat (limited to 'tests/ui/pinned_drop/call-drop-inner.stderr')
-rw-r--r-- | tests/ui/pinned_drop/call-drop-inner.stderr | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/pinned_drop/call-drop-inner.stderr b/tests/ui/pinned_drop/call-drop-inner.stderr index 5bcb728..597f67c 100644 --- a/tests/ui/pinned_drop/call-drop-inner.stderr +++ b/tests/ui/pinned_drop/call-drop-inner.stderr @@ -2,9 +2,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied --> tests/ui/pinned_drop/call-drop-inner.rs:10:13 | 10 | __drop_inner(this); - | ^^^^^^^^^^^^ ---- supplied 1 argument - | | - | expected 0 arguments + | ^^^^^^^^^^^^ ---- argument unexpected | note: function defined here --> tests/ui/pinned_drop/call-drop-inner.rs:3:1 @@ -17,4 +15,8 @@ note: function defined here 12 | | } 13 | | } | |_^ - = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` (in Nightly builds, run with -Z macro-backtrace for more info) +help: remove the extra argument + | +10 | __drop_inner(); + | ~~~~~~~~~~~~~~ |