1 error[E0599]: no method named `as_deref` found for enum `std::result::Result<{integer}, _>` in the current scope
2 --> $DIR/result-as_deref.rs:4:27
4 LL | let _result = &Ok(42).as_deref();
5 | ^^^^^^^^ help: there is a method with a similar name: `as_ref`
7 = note: the method `as_deref` exists but the following trait bounds were not satisfied:
8 `{integer}: std::ops::Deref`
9 `<{integer} as std::ops::Deref>::Target = _`
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0599`.