2017-03-26 00:16:45 -05:00
|
|
|
pub enum TransactionState {
|
|
|
|
Committed(i64),
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum Packet {
|
|
|
|
Transaction { state: TransactionState },
|
|
|
|
}
|
|
|
|
|
|
|
|
fn baz(p: Packet) {
|
|
|
|
loop {
|
|
|
|
loop {
|
|
|
|
loop {
|
|
|
|
loop {
|
|
|
|
if let Packet::Transaction {
|
2017-07-03 04:54:26 -05:00
|
|
|
state: TransactionState::Committed(ts, ..),
|
|
|
|
..
|
2017-06-14 06:39:07 -05:00
|
|
|
} = p
|
2017-06-11 23:01:41 -05:00
|
|
|
{
|
2017-03-26 00:16:45 -05:00
|
|
|
unreachable!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|