fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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