summary refs log tree commit diff
path: root/src/test/ui/issues/issue-25368.rs
blob: 8b4dbb6e460a5ac697ad57d3f852a6fe748871ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
    });
}