fork/rust

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

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

master
817 B16 linesraw
1error[E0277]: `RefCell<isize>` cannot be shared between threads safely
2  --> $DIR/issue-7364.rs:4:15
3   |
4LL | static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
5   |               ^^^^^^^^^^^^^^^^^^^ `RefCell<isize>` cannot be shared between threads safely
6   |
7   = help: the trait `Sync` is not implemented for `RefCell<isize>`
8   = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead
9   = note: required for `Unique<RefCell<isize>>` to implement `Sync`
10note: required because it appears within the type `Box<RefCell<isize>>`
11  --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
12   = note: shared static variables must have a type that implements `Sync`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.