We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8ec4c4 commit 387b6c3Copy full SHA for 387b6c3
src/test/ui/generator/issue-62506-two_awaits.rs
@@ -0,0 +1,18 @@
1
+// Output = String caused an ICE whereas Output = &'static str compiled successfully.
2
+// Broken MIR: generator contains type std::string::String in MIR,
3
+// but typeck only knows about {<S as T>::Future, ()}
4
+// check-pass
5
+// edition:2018
6
+
7
+#![feature(async_await)]
8
+use std::future::Future;
9
10
+pub trait T {
11
+ type Future: Future<Output = String>;
12
+ fn bar() -> Self::Future;
13
+}
14
+pub async fn foo<S>() where S: T {
15
+ S::bar().await;
16
17
18
+pub fn main() {}
0 commit comments