]> git.lizzy.rs Git - rust.git/blob - tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / unboxed-closures / unboxed-closures-failed-recursive-fn-2.stderr
1 error[E0282]: type annotations needed for `Option<T>`
2   --> $DIR/unboxed-closures-failed-recursive-fn-2.rs:8:9
3    |
4 LL |     let mut closure0 = None;
5    |         ^^^^^^^^^^^^
6 ...
7 LL |                         return c();
8    |                                --- type must be known at this point
9    |
10 help: consider giving `closure0` an explicit type, where the placeholders `_` are specified
11    |
12 LL |     let mut closure0: Option<T> = None;
13    |                     +++++++++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0282`.