aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/tests/ui/sync_impl/once_lock.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-sync/tests/ui/sync_impl/once_lock.stderr')
-rw-r--r--embassy-sync/tests/ui/sync_impl/once_lock.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/embassy-sync/tests/ui/sync_impl/once_lock.stderr b/embassy-sync/tests/ui/sync_impl/once_lock.stderr
new file mode 100644
index 000000000..e2419f844
--- /dev/null
+++ b/embassy-sync/tests/ui/sync_impl/once_lock.stderr
@@ -0,0 +1,9 @@
1error[E0277]: `*mut u8` cannot be shared between threads safely
2 --> tests/ui/sync_impl/once_lock.rs:4:16
3 |
44 | static GLOBAL: OnceLock<*mut u8> = OnceLock::new();
5 | ^^^^^^^^^^^^^^^^^ `*mut u8` cannot be shared between threads safely
6 |
7 = help: the trait `Sync` is not implemented for `*mut u8`
8 = note: required for `embassy_sync::once_lock::OnceLock<*mut u8>` to implement `Sync`
9 = note: shared static variables must have a type that implements `Sync`