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 {
23 //~^ ERROR mismatched types
27 fn qux() -> impl std::fmt::Display {
32 //~^ ERROR `if` and `else` have incompatible types
36 fn bat() -> impl std::fmt::Display {
40 //~^ ERROR mismatched types
44 fn can() -> impl std::fmt::Display {
46 //~^ ERROR mismatched types
53 fn cat() -> impl std::fmt::Display {
60 //~^ ERROR mismatched types