I'm trying to write some code where a task does something and sends a
struct through a Chan to the function that created the task, and it's
giving me some serious issues with not letting me actually send it.
The full error is:


glfw.rs:135:8: 135:12 error: not a sendable value
glfw.rs:135         chan.send(first_glfw);
^~~~
glfw.rs:135:8: 135:30 error: instantiating a type parameter with an
incompatible type (needs `owned`, got `copy durable`, missing `owned`)
glfw.rs:135         chan.send(first_glfw);
^~~~~~~~~~~~~~~~~~~~~~

>From the code: http://pastebin.com/f3XFxBuQ (this is at line 80 of the
pastebin code). I asked IRC about this as well, and someone suggested
changing "let first_glfw = GLFW" to "let first_glfw = ~GLFW" but that
didn't change the error. Any help getting this worked out would be
seriously appreciated.

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to