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