blob: 4c2de025d69c063fa9d6e7542997957e289372b9 [file] [log] [blame]
//! regression test for <https://github.com/rust-lang/rust/issues/25368>
use std::sync::mpsc::channel;
use std::thread::spawn;
use std::marker::PhantomData;
struct Foo<T> {foo: PhantomData<T>}
fn main() {
let (tx, rx) =
channel();
spawn(move || {
tx.send(Foo{ foo: PhantomData });
//~^ ERROR type annotations needed
});
}