fork/rust

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

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

master
772 B19 linesraw
1error[E0277]: `Rc<RefCell<A>>` cannot be sent between threads safely
2  --> $DIR/issue-7013.rs:24:19
3   |
4LL |     let a = A {v: Box::new(B{v: None}) as Box<dyn Foo + Send>};
5   |                   ^^^^^^^^^^^^^^^^^^^^ `Rc<RefCell<A>>` cannot be sent between threads safely
6   |
7   = help: within `B`, the trait `Send` is not implemented for `Rc<RefCell<A>>`
8note: required because it appears within the type `Option<Rc<RefCell<A>>>`
9  --> $SRC_DIR/core/src/option.rs:LL:COL
10note: required because it appears within the type `B`
11  --> $DIR/issue-7013.rs:8:8
12   |
13LL | struct B {
14   |        ^
15   = note: required for the cast from `Box<B>` to `Box<dyn Foo + Send>`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.