blob: 94a9f4e5692a3bb8efa1b2922ca63efe8e1e75b9 [file] [log] [blame]
// Test that we use fully-qualified type names in error messages.
mod x {
pub enum Foo { }
}
mod y {
pub enum Foo { }
}
fn bar(x: x::Foo) -> y::Foo {
return x;
//~^ ERROR mismatched types
//~| expected enum `y::Foo`, found enum `x::Foo`
}
fn main() {
}