We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e836c6 commit 50b7678Copy full SHA for 50b7678
crates/hir-ty/src/tests/regression.rs
@@ -1999,3 +1999,22 @@ where
1999
"#,
2000
);
2001
}
2002
+
2003
+#[test]
2004
+fn tait_async_stack_overflow_17199() {
2005
+ check_types(
2006
+ r#"
2007
+ //- minicore: fmt, future
2008
+ type Foo = impl core::fmt::Debug;
2009
2010
+ async fn foo() -> Foo {
2011
+ ()
2012
+ }
2013
2014
+ async fn test() {
2015
+ let t = foo().await;
2016
+ // ^ impl Debug
2017
2018
+"#,
2019
+ );
2020
+}
0 commit comments