mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

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.
9 lines
166 B
Plaintext
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
|
|
|