blob: 88910a7bb20fff225c1abd59d3f4925cd1a975d6 [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 type `std::option::Option<usize>`
//~| found type `usize`
//~| expected enum `std::option::Option`, found usize
}
fn main() {
}