mirror of https://github.com/rust-lang/rust
13 lines
484 B
Plaintext
13 lines
484 B
Plaintext
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 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|