blob: 81d72c3fb9a2a1a5a4a98470823870bc27dc967a (
plain)
1
2
3
4
5
6
7
8
9
|
//@ edition: 2021
async fn foo() -> Result<(), ()> { todo!() }
fn main() -> Result<(), ()> {
foo()?;
//~^ ERROR the `?` operator can only be applied to values that implement `Try`
Ok(())
}
|