rust/tests/ui/parser/issues/issue-24197.rs

4 lines
85 B
Rust

fn main() {
let buf[0] = 0; //~ error: expected a pattern, found an expression
}