2021-07-03 17:32:26 -05:00
|
|
|
// edition:2018
|
|
|
|
|
2021-07-04 10:26:32 -05:00
|
|
|
fn main() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn foo() {
|
2021-07-03 17:32:26 -05:00
|
|
|
// Adding an .await here avoids the ICE
|
|
|
|
test()?;
|
2021-07-04 10:26:32 -05:00
|
|
|
//~^ ERROR the `?` operator can only be applied to values that implement `Try`
|
|
|
|
//~| ERROR the `?` operator can only be used in an async function that returns
|
2021-07-03 17:32:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Removing the const generic parameter here avoids the ICE
|
|
|
|
async fn test<const N: usize>() {
|
|
|
|
}
|