rust/tests/ui/explicit-tail-calls/in-closure.stderr
Maybe Waffle cfb78419cd
implement checks for tail calls
this implements checks necessary to guarantee that we can actually
perform a tail call. while extremely restrictive, this is what is
documented in the RFC, and all these checks are needed for one reason or
another.
2024-11-29 04:44:41 +01:00

9 lines
166 B
Plaintext

error: `become` is not allowed in closures
--> $DIR/in-closure.rs:5:8
|
LL | || become f();
| ^^^^^^^^^^
error: aborting due to 1 previous error