]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref_err.stderr
keep predicate order and tweak output
[rust.git] / src / test / ui / issues / issue-50264-inner-deref-trait / result-as_deref_err.stderr
1 error[E0599]: no method named `as_deref_err` found for enum `std::result::Result<_, {integer}>` in the current scope
2   --> $DIR/result-as_deref_err.rs:4:28
3    |
4 LL |     let _result = &Err(41).as_deref_err();
5    |                            ^^^^^^^^^^^^ help: there is a method with a similar name: `as_deref_mut`
6    |
7    = note: the method `as_deref_err` exists but the following trait bounds were not satisfied:
8            `{integer}: std::ops::Deref`
9            `<{integer} as std::ops::Deref>::Target = _`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0599`.