// Test that we use fully-qualified type names in error messages. use std::option::Option; fn bar(x: usize) -> Option { //~ NOTE expected `Option` because of return type return x; //~^ ERROR mismatched types //~| NOTE expected enum `Option` //~| NOTE found type `usize` //~| NOTE expected `Option`, found `usize` } fn main() { }