]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-84073.stderr
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / ui / impl-trait / issues / issue-84073.stderr
1 error[E0282]: type annotations needed for `RaceBuilder<T, Never<T>>`
2   --> $DIR/issue-84073.rs:32:16
3    |
4 LL |     Race::new(|race| race.when());
5    |                ^^^^
6    |
7 help: consider giving this closure parameter an explicit type, where the type for type parameter `T` is specified
8    |
9 LL |     Race::new(|race: RaceBuilder<T, Never<T>>| race.when());
10    |                    ++++++++++++++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.