]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-1397.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-1397.rs
1 pub enum TransactionState {
2     Committed(i64),
3 }
4
5 pub enum Packet {
6     Transaction { state: TransactionState },
7 }
8
9 fn baz(p: Packet) {
10     loop {
11         loop {
12             loop {
13                 loop {
14                     if let Packet::Transaction {
15                         state: TransactionState::Committed(ts, ..),
16                         ..
17                     } = p
18                     {
19                         unreachable!()
20                     }
21                 }
22             }
23         }
24     }
25 }