]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-65159.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / async-await / issues / issue-65159.rs
1 // Regression test for #65159. We used to ICE.
2 //
3 // edition:2018
4
5 async fn copy() -> Result<()>
6 //~^ ERROR this enum takes 2 generic arguments
7 {
8     Ok(())
9     //~^ ERROR type annotations needed
10 }
11
12 fn main() { }