mlua/tests/compile/non_send.stderr

15 lines
783 B
Plaintext
Raw Normal View History

2020-12-29 18:20:06 -05:00
error[E0277]: `Rc<Cell<i32>>` cannot be sent between threads safely
--> $DIR/non_send.rs:11:9
|
11 | lua.create_function(move |_, ()| {
| _________^^^^^^^^^^^^^^^_-
| | |
2020-12-29 18:20:06 -05:00
| | `Rc<Cell<i32>>` cannot be sent between threads safely
12 | | Ok(data.get())
13 | | })?
2020-12-29 18:20:06 -05:00
| |_____- within this `[closure@$DIR/tests/compile/non_send.rs:11:25: 13:6]`
|
2020-12-29 18:20:06 -05:00
= help: within `[closure@$DIR/tests/compile/non_send.rs:11:25: 13:6]`, the trait `Send` is not implemented for `Rc<Cell<i32>>`
= note: required because it appears within the type `[closure@$DIR/tests/compile/non_send.rs:11:25: 13:6]`
= note: required because of the requirements on the impl of `mlua::types::MaybeSend` for `[closure@$DIR/tests/compile/non_send.rs:11:25: 13:6]`