rust/tests/ui/async-await/issues/issue-65159.rs
Oli Scherer fb44c848c3 Keep error types around, even in obligations.
These help silence follow up errors
2024-01-11 09:52:25 +00:00

12 lines
168 B
Rust

// Regression test for #65159. We used to ICE.
//
// edition:2018
async fn copy() -> Result<()>
//~^ ERROR enum takes 2 generic arguments
{
Ok(())
}
fn main() {}