We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
loop
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following (compile-fail/loop-pred-constraints.rs) should not compile:
fn print_even(y: int) : even(y) { log(debug, y); } pure fn even(y: int) -> bool { true } fn main() { let mut y = 42; check (even(y)); loop { print_even(y); loop { y += 1; break; } } }
Removing the inner loop or changing it to a do (back when `do existed) gives the correct error.
do
The text was updated successfully, but these errors were encountered:
3f3c9ca
Merge pull request rust-lang#2374 from rust-lang/rustc-pull
e008338
Rustc pull update
b2de3f4
No branches or pull requests
The following (compile-fail/loop-pred-constraints.rs) should not compile:
Removing the inner
loop
or changing it to ado
(back when `do existed) gives the correct error.The text was updated successfully, but these errors were encountered: