2 Checks for usages of `Err(x)?`.
5 The `?` operator is designed to allow calls that
6 can fail to be easily chained. For example, `foo()?.bar()` or
7 `foo(bar()?)`. Because `Err(x)?` can't be used that way (it will
8 always return), it is more clear to write `return Err(x)`.
12 fn foo(fail: bool) -> Result<i32, String> {
22 fn foo(fail: bool) -> Result<i32, String> {
24 return Err("failed".into());