mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 07:24:00 +00:00
25 lines
492 B
Rust
25 lines
492 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!()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|