summaryrefslogtreecommitdiffstats
path: root/vendor/pin-project-lite/tests/ui/pinned_drop
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pin-project-lite/tests/ui/pinned_drop')
-rw-r--r--vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr11
-rw-r--r--vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr8
2 files changed, 8 insertions, 11 deletions
diff --git a/vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr b/vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr
index 597f67c84..a6226216c 100644
--- a/vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr
+++ b/vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr
@@ -2,7 +2,10 @@ 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);
- | ^^^^^^^^^^^^ ---- argument unexpected
+ | ^^^^^^^^^^^^ ----
+ | |
+ | unexpected argument of type `Pin<&mut S>`
+ | help: remove the extra argument
|
note: function defined here
--> tests/ui/pinned_drop/call-drop-inner.rs:3:1
@@ -15,8 +18,4 @@ note: function defined here
12 | | }
13 | | }
| |_^
- = 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();
- | ~~~~~~~~~~~~~~
+ = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr b/vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr
index d70009c97..fe0ee79d8 100644
--- a/vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr
+++ b/vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr
@@ -7,10 +7,8 @@ error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented f
note: the implementor must specify the same requirement
--> tests/ui/pinned_drop/conditional-drop-impl.rs:5:1
|
-5 | / struct DropImpl<T> {
-6 | | f: T,
-7 | | }
- | |_^
+5 | struct DropImpl<T> {
+ | ^^^^^^^^^^^^^^^^^^
error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not
--> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1
@@ -35,4 +33,4 @@ note: the implementor must specify the same requirement
23 | | }
24 | | }
| |_^
- = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
+ = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)