]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / issues / issue-50264-inner-deref-trait / result-as_deref.stderr
index 2dfc6d53750e703fc12d98cea40f71b8b0a2947b..f33e9c7823ee4fbd8e955a74e189fa8559910b8d 100644 (file)
@@ -2,7 +2,7 @@ error[E0599]: no method named `as_deref` found for enum `std::result::Result<{in
   --> $DIR/result-as_deref.rs:4:27
    |
 LL |     let _result = &Ok(42).as_deref();
-   |                           ^^^^^^^^ help: there is a method with a similar name: `as_ref`
+   |                           ^^^^^^^^ help: there is an associated function with a similar name: `as_ref`
    |
    = note: the method `as_deref` exists but the following trait bounds were not satisfied:
            `{integer}: std::ops::Deref`