rust/src/test/ui/issues/issue-25368.stderr

13 lines
593 B
Plaintext
Raw Normal View History

2019-06-01 16:47:15 -05:00
error[E0282]: type annotations needed for `(std::sync::mpsc::Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-25368.rs:11:17
2018-07-15 16:11:54 -05:00
|
LL | let (tx, rx) = channel();
2019-06-01 16:47:15 -05:00
| -------- consider giving this pattern the explicit type `(std::sync::mpsc::Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`, where the type parameter `T` is specified
2018-07-15 16:11:54 -05:00
...
2019-03-09 06:03:44 -06:00
LL | tx.send(Foo{ foo: PhantomData });
2019-12-11 19:06:24 -06:00
| ^^^ cannot infer type for type parameter `T`
2018-07-15 16:11:54 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.