From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../unboxed-closures-failed-recursive-fn-2.stderr | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr (limited to 'tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr') diff --git a/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr new file mode 100644 index 000000000..ff2a597be --- /dev/null +++ b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr @@ -0,0 +1,17 @@ +error[E0282]: type annotations needed for `Option` + --> $DIR/unboxed-closures-failed-recursive-fn-2.rs:8:9 + | +LL | let mut closure0 = None; + | ^^^^^^^^^^^^ +... +LL | return c(); + | --- type must be known at this point + | +help: consider giving `closure0` an explicit type, where the placeholders `_` are specified + | +LL | let mut closure0: Option = None; + | +++++++++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0282`. -- cgit v1.2.3