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") }
}
}
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") }
}
}