2017-03-26 01:16:45 -04: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 18:54:26 +09:00
|
|
|
state: TransactionState::Committed(ts, ..),
|
|
|
|
..
|
2017-06-14 20:39:07 +09:00
|
|
|
} = p
|
2017-06-12 16:01:41 +12:00
|
|
|
{
|
2017-03-26 01:16:45 -04:00
|
|
|
unreachable!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|