match 'c' {
S { .. } => (),
//~^ ERROR mismatched types
- //~| expected type `char`
- //~| found type `S`
- //~| expected char, found struct `S`
+ //~| expected `char`, found struct `S`
_ => ()
}
f(true);
//~^ ERROR mismatched types
- //~| expected char, found bool
+ //~| expected `char`, found `bool`
match () {
E::V => {} //~ ERROR failed to resolve: use of undeclared type or module `E`