1 error[E0277]: `OnceCell<()>` cannot be shared between threads safely
2 --> $DIR/suggest-once-cell.rs:8:20
4 LL | require_sync::<std::cell::OnceCell<()>>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^ `OnceCell<()>` cannot be shared between threads safely
7 = help: the trait `Sync` is not implemented for `OnceCell<()>`
8 = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::OnceLock` instead
9 note: required by a bound in `require_sync`
10 --> $DIR/suggest-once-cell.rs:3:20
12 LL | fn require_sync<T: Sync>() {}
13 | ^^^^ required by this bound in `require_sync`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.