From 1297cb7f37bc37c6154c0fa4fcf23150c7a80548 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sat, 3 Jul 2021 18:32:26 -0400 Subject: [PATCH] add test case --- src/test/ui/async-await/issue-84841.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/ui/async-await/issue-84841.rs diff --git a/src/test/ui/async-await/issue-84841.rs b/src/test/ui/async-await/issue-84841.rs new file mode 100644 index 00000000000..23367788323 --- /dev/null +++ b/src/test/ui/async-await/issue-84841.rs @@ -0,0 +1,10 @@ +// edition:2018 + +async fn main() { + // Adding an .await here avoids the ICE + test()?; +} + +// Removing the const generic parameter here avoids the ICE +async fn test() { +} -- GitLab