1 error[E0599]: no method named `deref_err` found for type `std::result::Result<_, {integer}>` in the current scope
2 --> $DIR/result-deref-err.rs:4:28
4 LL | let _result = &Err(41).deref_err();
5 | ^^^^^^^^^ help: did you mean: `deref_ok`
7 = note: the method `deref_err` exists but the following trait bounds were not satisfied:
8 `{integer} : std::ops::Deref`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0599`.