1 // Issue 4691: Ensure that functional-struct-update can only copy, not
2 // move, when the struct implements Drop.
5 struct S { a: isize, b: B }
6 impl Drop for S { fn drop(&mut self) { } }
8 struct T { a: isize, mv: Box<isize> }
9 impl Drop for T { fn drop(&mut self) { } }
12 let _s2 = S{a: 2, ..s0};
17 let _s2 = T{a: 2, ..s0};