1 error[E0282]: type annotations needed
2 --> $DIR/issue-25368.rs:21:17
4 LL | let (tx, rx) = channel();
5 | -------- consider giving the pattern a type
7 LL | tx.send(Foo{ foo: PhantomData }); //~ ERROR E0282
8 | ^^^ cannot infer type for `T`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0282`.