]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-65159.rs
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[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<()> //~ ERROR wrong number of type arguments
6 {
7     Ok(())
8     //~^ type annotations needed
9 }
10
11 fn main() { }