rust/tests/target/issue-1397.rs
2017-06-14 20:39:07 +09:00

25 lines
484 B
Rust

pub enum TransactionState {
Committed(i64),
}
pub enum Packet {
Transaction { state: TransactionState },
}
fn baz(p: Packet) {
loop {
loop {
loop {
loop {
if let Packet::Transaction {
state: TransactionState::Committed(ts, ..), ..
} = p
{
unreachable!()
}
}
}
}
}
}