]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-84841.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }