2021-01-28 10:01:36 -06:00
|
|
|
error[E0599]: the method `as_deref` exists for enum `Result<{integer}, _>`, but its trait bounds were not satisfied
|
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-09-26 16:20:14 -05:00
|
|
|
| ^^^^^^^^
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
2020-09-26 16:20:14 -05:00
|
|
|
= note: the following trait bounds were not satisfied:
|
2020-09-02 02:40:56 -05:00
|
|
|
`{integer}: Deref`
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|