1 error[E0282]: type annotations needed for `(Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`
2 --> $DIR/issue-25368.rs:11:17
4 LL | let (tx, rx) = channel();
5 | -------- consider giving this pattern the explicit type `(Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`, where the type parameter `T` is specified
7 LL | tx.send(Foo{ foo: PhantomData });
8 | ^^^ cannot infer type for type parameter `T` declared on the struct `Foo`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0282`.