summaryrefslogtreecommitdiffstats
path: root/vendor/cxx/tests/ui/opaque_autotraits.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/cxx/tests/ui/opaque_autotraits.stderr
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/cxx/tests/ui/opaque_autotraits.stderr')
-rw-r--r--vendor/cxx/tests/ui/opaque_autotraits.stderr59
1 files changed, 59 insertions, 0 deletions
diff --git a/vendor/cxx/tests/ui/opaque_autotraits.stderr b/vendor/cxx/tests/ui/opaque_autotraits.stderr
new file mode 100644
index 000000000..c6447c558
--- /dev/null
+++ b/vendor/cxx/tests/ui/opaque_autotraits.stderr
@@ -0,0 +1,59 @@
+error[E0277]: `*const cxx::void` cannot be sent between threads safely
+ --> tests/ui/opaque_autotraits.rs:13:19
+ |
+13 | assert_send::<ffi::Opaque>();
+ | ^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
+ |
+ = help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void`
+ = note: required because it appears within the type `[*const void; 0]`
+ = note: required because it appears within the type `Opaque`
+note: required because it appears within the type `Opaque`
+ --> tests/ui/opaque_autotraits.rs:4:14
+ |
+4 | type Opaque;
+ | ^^^^^^
+note: required by a bound in `assert_send`
+ --> tests/ui/opaque_autotraits.rs:8:19
+ |
+8 | fn assert_send<T: Send>() {}
+ | ^^^^ required by this bound in `assert_send`
+
+error[E0277]: `*const cxx::void` cannot be shared between threads safely
+ --> tests/ui/opaque_autotraits.rs:14:19
+ |
+14 | assert_sync::<ffi::Opaque>();
+ | ^^^^^^^^^^^ `*const cxx::void` cannot be shared between threads safely
+ |
+ = help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void`
+ = note: required because it appears within the type `[*const void; 0]`
+ = note: required because it appears within the type `Opaque`
+note: required because it appears within the type `Opaque`
+ --> tests/ui/opaque_autotraits.rs:4:14
+ |
+4 | type Opaque;
+ | ^^^^^^
+note: required by a bound in `assert_sync`
+ --> tests/ui/opaque_autotraits.rs:9:19
+ |
+9 | fn assert_sync<T: Sync>() {}
+ | ^^^^ required by this bound in `assert_sync`
+
+error[E0277]: `PhantomPinned` cannot be unpinned
+ --> tests/ui/opaque_autotraits.rs:15:20
+ |
+15 | assert_unpin::<ffi::Opaque>();
+ | ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`
+ |
+ = note: consider using `Box::pin`
+ = note: required because it appears within the type `PhantomData<PhantomPinned>`
+ = note: required because it appears within the type `Opaque`
+note: required because it appears within the type `Opaque`
+ --> tests/ui/opaque_autotraits.rs:4:14
+ |
+4 | type Opaque;
+ | ^^^^^^
+note: required by a bound in `assert_unpin`
+ --> tests/ui/opaque_autotraits.rs:10:20
+ |
+10 | fn assert_unpin<T: Unpin>() {}
+ | ^^^^^ required by this bound in `assert_unpin`