Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustResult and ? operatorSingle-choice MCQ

What is the type of `x` after this line, assuming it compiles inside a function returning `Result<(), E>`?

let x = some_result()?; // some_result(): fn() -> Result<i32, E>