rust/tests/ui/pattern/issue-106552.rs

8 lines
165 B
Rust
Raw Normal View History

fn main() {
let 5 = 6;
//~^ error refutable pattern in local binding [E0005]
let x @ 5 = 6;
//~^ error refutable pattern in local binding [E0005]
}