From d5a9a005188322cd08dca018402e1593d3a5ebd5 Mon Sep 17 00:00:00 2001 From: Andrew Zhogin Date: Tue, 3 Jun 2025 03:27:21 +0700 Subject: Fix for async drop inside async gen fn --- tests/crashes/140530.rs | 8 -------- tests/ui/async-await/async-drop/assign-incompatible-types.rs | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 tests/crashes/140530.rs create mode 100644 tests/ui/async-await/async-drop/assign-incompatible-types.rs (limited to 'tests') diff --git a/tests/crashes/140530.rs b/tests/crashes/140530.rs deleted file mode 100644 index 7e0372a4bd8..00000000000 --- a/tests/crashes/140530.rs +++ /dev/null @@ -1,8 +0,0 @@ -//@ known-bug: #140530 -//@ edition: 2024 - -#![feature(async_drop, gen_blocks)] -async gen fn a() { - _ = async {} -} -fn main() {} diff --git a/tests/ui/async-await/async-drop/assign-incompatible-types.rs b/tests/ui/async-await/async-drop/assign-incompatible-types.rs new file mode 100644 index 00000000000..359939ff9ac --- /dev/null +++ b/tests/ui/async-await/async-drop/assign-incompatible-types.rs @@ -0,0 +1,9 @@ +// ex-ice: #140530 +//@ edition: 2024 +//@ build-pass +#![feature(async_drop, gen_blocks)] +#![allow(incomplete_features)] +async gen fn a() { + _ = async {} +} +fn main() {} -- cgit 1.4.1-3-g733a5