fn foo(b: bool) -> Result { //~ ERROR mismatched types Err("bar".to_string()); } fn main() { foo(false); }