mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
9 lines
163 B
Rust
Executable File
9 lines
163 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
let v = vec![1, 2, 3, 4, 5];
|
|
|
|
let does_not_exist = &v[100];
|
|
let does_not_exist = v.get(100);
|
|
// ANCHOR_END: here
|
|
}
|