Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 3, 2021
1 parent 1aa6c7c commit 1297cb7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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<const N: usize>() {
}

0 comments on commit 1297cb7

Please sign in to comment.