Closed
Description
? can be used for Option or Result since 1.22 (see blog post)
Documentation in the book says "The ? Operator Can Only Be Used in Functions That Return Result" -- see https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#recoverable-errors-with-result
the text of this section doesn't match the current capabilities of Rust, or but the displayed error message is correct (maybe the example errors are auto-generated):
Metadata
Metadata
Assignees
Labels
No labels