rust/src/test/ui/issues/issue-25368.rs
2018-12-25 21:08:33 -07:00

14 lines
253 B
Rust

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 E0282
});
}