let x : char = last(y);
//~^ ERROR mismatched types
//~| expected type `char`
- //~| found type `std::option::Option<_>`
- //~| expected char, found enum `std::option::Option`
+ //~| found enum `std::option::Option<_>`
+ //~| expected `char`, found enum `std::option::Option`
}