3 // Ensure that we can do a destructuring bind of a fixed-size array,
4 // even when the element type has a destructor.
8 impl Drop for D { fn drop(&mut self) { } }
11 fn d(x: u8) -> D { D { x: x } }
13 let d1 = foo([d(1), d(2), d(3), d(4)], 1);
14 let d3 = foo([d(5), d(6), d(7), d(8)], 3);
19 fn foo([a, b, c, d]: [D; 4], i: usize) -> D {
25 _ => panic!("unmatched"),