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 000000000000..233677883230 --- /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() { +}