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
I'm a newbie messing about so I couldn't say if this has been reported before or not (certainly similar ones has been.)
use std::sync::{Arc,Mutex};use std::thread;use std::sync::mpsc::channel;fnmain(){let channel_collector = Arc::new(Mutex::new(vec!()));
thread::spawn(move || {let(tx, rx) = channel();{letmut cc = channel_collector.lock().unwrap();
cc.push(rx);// or tx}});}
<anon>:11:5: 11:18 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `core::marker::Send` for the type `[closure <anon>:11:24: 20:6]`
<anon>:11 thread::spawn(move || {
I'm a newbie messing about so I couldn't say if this has been reported before or not (certainly similar ones has been.)
http://is.gd/zmtsnG
The text was updated successfully, but these errors were encountered: