rust/tests/ui/impl-trait/dont-suggest-box-on-empty-else-arm.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
159 B
Rust
Raw Normal View History

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