]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-25368.stderr
Tweak wording
[rust.git] / src / test / ui / issues / issue-25368.stderr
1 error[E0282]: type annotations needed in `(std::sync::mpsc::Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`
2   --> $DIR/issue-25368.rs:11:17
3    |
4 LL |     let (tx, rx) = channel();
5    |         -------- consider giving this pattern the type `(std::sync::mpsc::Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)` with the type parameter `T` specified
6 ...
7 LL |         tx.send(Foo{ foo: PhantomData });
8    |                 ^^^ cannot infer type for `T` in `(std::sync::mpsc::Sender<Foo<T>>, std::sync::mpsc::Receiver<Foo<T>>)`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0282`.