1 fn foo() -> impl std::fmt::Display {
6 //~^ ERROR mismatched types
9 fn bar() -> impl std::fmt::Display {
14 //~^ ERROR mismatched types
18 fn baz() -> impl std::fmt::Display {
20 //~^ ERROR mismatched types
27 fn qux() -> impl std::fmt::Display {
32 //~^ ERROR if and else have incompatible types