fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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