Documentation for ?
operator and Option
does not mention that ?
can be used with Option
#1679
Labels
?
operator and Option
does not mention that ?
can be used with Option
#1679
See the discussion in the following Reddit thread:
https://www.reddit.com/r/rust/comments/a4za5j/where_is_for_option_in_the_rfc_process/
Based on discussion, there is behavior released in Edition 2018 that is not documented in the Edition 2018 book, as well as behavior that is incorrectly documented:
Try
trait and corresponding?
operator work withOption
as well as withResult
and the?
operator can returnNone
to the surrounding function (if the return from that function is declared asOption<T>
as well asErr
(if the return is declared asResult
).?
in anOption
context or forward reference 9.3 (or a subsequent section) that documents?
in anOption
context.The text was updated successfully, but these errors were encountered: