#RustQuiz: what is the output?
A. prints fn1fn21
B. printsfn11
C. Compilation error
D. Runtime panic
vote below 👇
#rustlang #rust
@AstraKernel Interesting... Most people voted B, but I am pretty sure it's A.
To get output B, I think main would need to be changed into
fn main() { if let Some(x) = fn1().or_else(fn2) { println!("{x}"); }}