2020-09-26 16:20:14 -05:00
|
|
|
error[E0599]: the method `as_deref` exists for enum `Option<{integer}>`, but its trait bounds were not satisfied
|
2019-09-23 08:51:25 -05:00
|
|
|
--> $DIR/option-as_deref.rs:2:29
|
2019-04-01 14:08:19 -05:00
|
|
|
|
|
|
|
|
LL | let _result = &Some(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`.
|