]> git.lizzy.rs Git - rust.git/blobdiff - 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
index 6dc13da548b1246a81e3597ea23b3e6cb9225f48..1d65c57e5e9ec182321a49156864111310ca2d70 100644 (file)
@@ -1,11 +1,12 @@
-error[E0599]: no method named `as_deref_err` found for type `std::result::Result<_, {integer}>` in the current scope
+error[E0599]: no method named `as_deref_err` found for enum `std::result::Result<_, {integer}>` in the current scope
   --> $DIR/result-as_deref_err.rs:4:28
    |
 LL |     let _result = &Err(41).as_deref_err();
-   |                            ^^^^^^^^^^^^ help: there is a method with a similar name: `as_deref_ok`
+   |                            ^^^^^^^^^^^^ help: there is a method with a similar name: `as_deref_mut`
    |
    = note: the method `as_deref_err` exists but the following trait bounds were not satisfied:
-           `{integer} : std::ops::Deref`
+           `{integer}: std::ops::Deref`
+           `<{integer} as std::ops::Deref>::Target = _`
 
 error: aborting due to previous error