Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | crates/hir-ty/src/tests/traits.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir-ty/src/tests/traits.rs b/crates/hir-ty/src/tests/traits.rs index 48a8371bc8..dd14ec9cdd 100644 --- a/crates/hir-ty/src/tests/traits.rs +++ b/crates/hir-ty/src/tests/traits.rs @@ -125,17 +125,18 @@ async fn test() { #[test] fn infer_async_gen_closure() { - check_types( + check( r#" //- minicore: async_iterator, fn //- /main.rs edition:2024 fn test() { let f = async gen move |x: i32| { yield x + 42; + //^^^^^^ expected Poll<Option<{unknown}>>, got i32 }; let a = f(4); a; -// ^ impl AsyncIterator<Item = i32> +// ^ type: impl AsyncIterator<Item = {unknown}> } "#, ); |