Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/regression.rs')
-rw-r--r--crates/hir-ty/src/tests/regression.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/crates/hir-ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs
index a5f349e593..87e6521e63 100644
--- a/crates/hir-ty/src/tests/regression.rs
+++ b/crates/hir-ty/src/tests/regression.rs
@@ -2,6 +2,8 @@ mod new_solver;
use expect_test::expect;
+use crate::tests::check;
+
use super::{check_infer, check_no_mismatches, check_types};
#[test]
@@ -2013,18 +2015,20 @@ where
#[test]
fn tait_async_stack_overflow_17199() {
- check_types(
+ // The error here is because we don't support TAITs.
+ check(
r#"
//- minicore: fmt, future
type Foo = impl core::fmt::Debug;
async fn foo() -> Foo {
()
+ // ^^ expected impl Debug, got ()
}
async fn test() {
let t = foo().await;
- // ^ impl Debug
+ // ^ type: impl Debug
}
"#,
);
@@ -2234,7 +2238,7 @@ type Bar = impl Foo;
async fn f<A, B, C>() -> Bar {}
"#,
expect![[r#"
- 64..66 '{}': ()
+ 64..66 '{}': impl Foo + ?Sized
"#]],
);
}