2020-09-26 17:20:14 -04:00
|
|
|
error[E0599]: the method `as_deref` exists for enum `Option<{integer}>`, but its trait bounds were not satisfied
|
2019-09-23 15:51:25 +02:00
|
|
|
--> $DIR/option-as_deref.rs:2:29
|
2019-04-01 12:08:19 -07:00
|
|
|
|
|
|
|
|
LL | let _result = &Some(42).as_deref();
|
2020-09-26 17:20:14 -04:00
|
|
|
| ^^^^^^^^
|
2019-04-01 12:08:19 -07:00
|
|
|
|
|
2020-09-26 17:20:14 -04:00
|
|
|
= note: the following trait bounds were not satisfied:
|
2020-09-02 10:40:56 +03:00
|
|
|
`{integer}: Deref`
|
2019-04-01 12:08:19 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|