A

Admin • 802.91K Points
Coach

Q. What does the `?` operator do in Rust?

  • (A) Creates a reference
  • (B) Marks a function as async
  • (C) Propagates errors
  • (D) Denotes a wildcard match
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`?` is used to propagate errors in functions that return Result or Option.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.