We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For
fn foo() { for i in 0 .. 9us { println!("{}", i) } }
it compiles fine, and for
fn bar(len: usize) { for i in 0 .. len { println!("{}", i) } }
compiler shows
3:10: 3:11 error: expected `:`, found `!`
It should give a tip that parentheses are missing anyway.
Rustc version:
rustc 1.0.0-dev (1028e185f 2015-01-20 18:12:41 +0800) binary: rustc commit-hash: 1028e185f91482551f629e97b8c3ad7ce0ade2f7 commit-date: 2015-01-20 18:12:41 +0800 host: i686-pc-windows-gnu release: 1.0.0-dev
The text was updated successfully, but these errors were encountered:
#20241?
Sorry, something went wrong.
@klutzy Thanks! Dup of #20241, so I'm closing it.
No branches or pull requests
For
it compiles fine, and for
compiler shows
It should give a tip that parentheses are missing anyway.
Rustc version:
The text was updated successfully, but these errors were encountered: