Files
rust/tests/ui/match/enum-and-break-in-match-issue-41213.rs
DuskyElf 5b981a8e91 Quickfix //@ check-pass is enough
tests/ui/match/enum-and-break-in-match-issue-41213.rs
and tests/ui/while/while-let-scope-issue-40235.rs doesn't
need to be run.
2025-02-04 21:42:43 +05:30

25 lines
322 B
Rust

//@ check-pass
#![allow(dead_code)]
enum A {
A1,
A2,
A3,
}
enum B {
B1(String, String),
B2(String, String),
}
fn main() {
let a = A::A1;
loop {
let _ctor = match a {
A::A3 => break,
A::A1 => B::B1,
A::A2 => B::B2,
};
break;
}
}