3 // Regression test for #35546. Check that we are able to codegen
4 // this. Before we had problems because of the drop glue signature
5 // around dropping a trait object (specifically, when dropping the
6 // `value` field of `Node<Send>`).
8 struct Node<T: ?Sized + Send> {
9 next: Option<Box<Node<dyn Send>>>,
13 fn clear(head: &mut Option<Box<Node<dyn Send>>>) {
15 Some(node) => *head = node.next,