You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnonce.rs:11:5: 11:11 error: unable to infer enough type information to locate the impl of the trait `core::kinds::Send` for the type `closure`; type annotations required
fnonce.rs:11 action("zomg", move |:v| tx.send(v));
^~~~~~
fnonce.rs:11:5: 11:11 note: the trait `core::kinds::Send` must be implemented because it is required by `action`
fnonce.rs:11 action("zomg", move |:v| tx.send(v));
^~~~~~
This error message was quite confusing and the actual error was caused by the type inferencer not being able to figure out the type of channel(). If I change that bit to: channel::<&'static str>(), everything compiles fine.
The text was updated successfully, but these errors were encountered:
Given the following code:
I get the error message:
This error message was quite confusing and the actual error was caused by the type inferencer not being able to figure out the type of channel(). If I change that bit to:
channel::<&'static str>()
, everything compiles fine.The text was updated successfully, but these errors were encountered: