fn main() {
let x: Result<String, ()> = Ok("asd".to_string());
x.unwrap_or(String::new());
}
The message suggests x.unwrap_or_default() but there is no such method for Result. It exists only for Option.
Good catch!
See also https://github.com/rust-lang/rust/issues/37025.
I'm closing this as it seems to be working as designed. Please reopen if you disagree.