mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
373 B
Rust
17 lines
373 B
Rust
//@ edition:2018
|
|
|
|
fn main() {
|
|
|
|
}
|
|
|
|
async fn foo() {
|
|
// Adding an .await here avoids the ICE
|
|
test()?;
|
|
//~^ 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
|
|
}
|
|
|
|
// Removing the const generic parameter here avoids the ICE
|
|
async fn test<const N: usize>() {
|
|
}
|