2023-06-04 12:33:13 -05:00
|
|
|
error: usage of `Arc<T>` where `T` is not `Send` or `Sync`
|
2023-07-03 04:34:02 -05:00
|
|
|
--> $DIR/arc_with_non_send_sync.rs:19:13
|
2023-06-04 12:33:13 -05:00
|
|
|
|
|
|
|
|
LL | let b = Arc::new(RefCell::new(42));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-06-08 02:22:04 -05:00
|
|
|
= help: consider using `Rc<T>` instead or wrapping `T` in a std::sync type like `Mutex<T>`
|
2023-06-04 12:33:13 -05:00
|
|
|
= note: `-D clippy::arc-with-non-send-sync` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|