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
use std::sync::mpsc::channel;use std::thread::spawn;use std::marker::PhantomData;structFoo<T>{foo:PhantomData<T>}fnmain(){let(tx, rx) = channel();spawn(move || {
tx.send(Foo{foo:PhantomData});});}
fails to compile with the following error (on playpen nightly 2014-05-13):
<anon>:10:5: 10:10 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `core::marker::Send` for the type `[closure <anon>:10:16: 12:6]`
<anon>:10 spawn(move || {
^~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:170
fails to compile with the following error (on playpen nightly 2014-05-13):
Here's the backtrace:
This is probably related to #24424, but doesn't include any lifetimes.
The text was updated successfully, but these errors were encountered: