2015-07-23 20:05:09 -05:00
|
|
|
use std::sync::mpsc::channel;
|
|
|
|
use std::thread::spawn;
|
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
|
|
|
struct Foo<T> {foo: PhantomData<T>}
|
|
|
|
|
|
|
|
fn main() {
|
2022-07-01 07:09:33 -05:00
|
|
|
let (tx, rx) =
|
2022-02-14 06:25:26 -06:00
|
|
|
channel();
|
2015-07-23 20:05:09 -05:00
|
|
|
spawn(move || {
|
2022-02-14 06:25:26 -06:00
|
|
|
tx.send(Foo{ foo: PhantomData });
|
2022-07-01 07:09:33 -05:00
|
|
|
//~^ ERROR type annotations needed
|
2015-07-23 20:05:09 -05:00
|
|
|
});
|
|
|
|
}
|