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
https://doc.rust-lang.org/book/ch03-02-data-types.html#invalid-array-element-access
The code sample:
fn main() { let a = [1, 2, 3, 4, 5]; let index = 10; let element = a[index]; println!("The value of element is: {}", element); }
Does not compile with cargo run (cargo 1.45.1 (f242df6ed 2020-07-22)).
cargo run
cargo 1.45.1 (f242df6ed 2020-07-22)
This is good, but means the example is out of date.
The text was updated successfully, but these errors were encountered:
I think this should be opened in rust-lang/book and not here
Sorry, something went wrong.
This is a duplicate of rust-lang/book#2417, should be closed
No branches or pull requests
https://doc.rust-lang.org/book/ch03-02-data-types.html#invalid-array-element-access
The code sample:
Does not compile with
cargo run
(cargo 1.45.1 (f242df6ed 2020-07-22)
).This is good, but means the example is out of date.
The text was updated successfully, but these errors were encountered: