]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs
9 fn not_all_paths(a
: &str) -> u32 { //~ ERROR mismatched types
16 fn right(b
: &str) -> Box
<dyn Foo
> {
18 "baz" => Box
::new(Baz
),
23 fn wrong(c
: &str) -> Box
<dyn Foo
> { //~ ERROR mismatched types
25 "baz" => Box
::new(Baz
),
26 _
=> Box
::new(Bar
), //~ ERROR `match` arms have incompatible types