diff --git a/src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs b/src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs index 21600cfc139b2..410a623681db5 100644 --- a/src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs +++ b/src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs @@ -199,7 +199,7 @@ fn assert_drop_order_after_cancel>( // Parameters are never dropped until the future completes. assert_eq!(*actual_order.borrow(), vec![DropOrder::Function]); - + drop(fut); let expected_order = Rc::new(RefCell::new(Vec::new()));