mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
7 lines
212 B
Rust
7 lines
212 B
Rust
use embassy_sync::once_lock::OnceLock;
|
|
|
|
// *mut u8 is not Sync, so OnceLock should not implement Sync for this type. This should fail to compile.
|
|
static GLOBAL: OnceLock<*mut u8> = OnceLock::new();
|
|
|
|
fn main() {}
|