2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no method named `as_deref` found for enum `std::result::Result<{integer}, _>` in the current scope
|
2020-07-30 10:32:25 -05:00
|
|
|
--> $DIR/result-as_deref.rs:2:27
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
|
|
|
LL | let _result = &Ok(42).as_deref();
|
2020-03-04 21:03:15 -06:00
|
|
|
| ^^^^^^^^ help: there is an associated function with a similar name: `as_ref`
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
|
|
|
= note: the method `as_deref` exists but the following trait bounds were not satisfied:
|
2020-02-18 01:22:19 -06:00
|
|
|
`{integer}: std::ops::Deref`
|
2020-02-24 20:55:51 -06:00
|
|
|
`<{integer} as std::ops::Deref>::Target = _`
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|