Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustOption and ? on OptionSingle-choice MCQ

What does `o.take()` do here, and what are the values of `x` and `y` afterward?

let mut x: Option<i32> = Some(5); let y = x.take();