blob: 30cb3ee48e768dda11044e629f26e3e8e661e5cd [file] [log] [blame]
// Test that we use fully-qualified type names in error messages.
use std::option::Option;
fn bar(x: usize) -> Option<usize> {
return x;
//~^ ERROR mismatched types
//~| expected enum `std::option::Option<usize>`
//~| found type `usize`
//~| expected enum `std::option::Option`, found `usize`
}
fn main() {
}