]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-84841.rs
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[rust.git] / tests / 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 }