体验新版 GitCode,发现更多精彩内容 >>
error[E0308]: mismatched types --> $DIR/non-first-arm-doesnt-match-expected-return-type.rs:11:25 | LL | fn test(shouldwe: Option<u32>, shouldwe2: Option<u32>) -> u32 { | --- expected `u32` because of return type ... LL | None => (), | ^^ expected `u32`, found `()` error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.