rust/tests/ui/impl-trait/dont-suggest-box-on-empty-else-arm.rs
2023-06-11 00:19:56 +00:00

10 lines
159 B
Rust

fn test() -> impl std::fmt::Debug {
if true {
"boo2"
} else {
//~^ ERROR `if` and `else` have incompatible types
}
}
fn main() {}