Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Aug 24, 2024

This was probably written just mirroring the grammar of return. But for become, the expression after the keyword is mandatory.

#![allow(incomplete_features)]
#![feature(explicit_tail_calls)]

fn repro() {
    become;
}
error: expected expression, found `;`
 --> src/lib.rs:5:11
  |
5 |     become;
  |           ^ expected expression

@dtolnay dtolnay merged commit 8f7365f into master Aug 24, 2024
@dtolnay dtolnay deleted the tailcall branch August 24, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants