fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-94176.rs:5:32 3 | 4LL | pub fn test(a: Option<u32>) -> Option<u32> { 5 | ---- ^^^^^^^^^^^ expected `Option<u32>`, found `()` 6 | | 7 | implicitly returns `()` as its body has no tail or `return` expression 8 | 9 = note: expected enum `Option<u32>` 10 found unit type `()` 11help: consider returning the local binding `a` 12 | 13LL ~ println!("Foo"); 14LL + a 15 | 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.