rust/tests/target/issue-1397.rs
2018-03-02 15:07:13 +13:00

26 lines
508 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!()
}
}
}
}
}
}