rust/src/test/ui/error-codes/E0165.rs
2018-12-25 21:08:33 -07:00

10 lines
206 B
Rust

struct Irrefutable(i32);
fn main() {
let irr = Irrefutable(0);
while let Irrefutable(x) = irr { //~ ERROR E0165
//~| irrefutable pattern
// ...
}
}