Idiomatic way of testing Result<T, Error>?

Can't you just try this?

fn check<T>(res: Result<T, Error>) {
    match res {
        Ok(val) => { println!("got the T") }
        Err(e) => { println!("got the Err") }
    }

}