]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-84841.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / issue-84841.rs
1 // edition:2018
2
3 fn main() {
4
5 }
6
7 async fn foo() {
8     // Adding an .await here avoids the ICE
9     test()?;
10     //~^ ERROR the `?` operator can only be applied to values that implement `Try`
11     //~| ERROR the `?` operator can only be used in an async function that returns
12 }
13
14 // Removing the const generic parameter here avoids the ICE
15 async fn test<const N: usize>() {
16 }