]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-65159.rs
Rollup merge of #99192 - Amanieu:fix-asm-srcloc, r=petrochenkov
[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() { }