2019-04-01 14:08:19 -05:00
|
|
|
error[E0599]: no method named `as_deref` found for type `std::result::Result<{integer}, _>` in the current scope
|
|
|
|
--> $DIR/result-as_deref.rs:4:27
|
|
|
|
|
|
|
|
|
LL | let _result = &Ok(42).as_deref();
|
2019-07-05 13:35:19 -05:00
|
|
|
| ^^^^^^^^ help: there is a method 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:
|
|
|
|
`{integer} : std::ops::Deref`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|