rust/tests/ui/index-help.rs
2023-01-11 09:32:08 +00:00

5 lines
64 B
Rust

fn main() {
let x = vec![1];
x[0i32]; //~ ERROR E0277
}