]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/binding/order-drop-with-match.rs
3 // Test to make sure the destructors run in the right order.
4 // Each destructor sets it's tag in the corresponding entry
5 // in ORDER matching up to when it ran.
6 // Correct order is: matched, inner, outer
9 static mut ORDER
: [usize; 3] = [0, 0, 0];
10 static mut INDEX
: usize = 0;
54 let expected
: &[_
] = &[1, 2, 3];
55 assert_eq
!(expected
, ORDER
);