rust/tests/ui/fully-qualified-type/fully-qualified-type-name2.rs

19 lines
267 B
Rust

// 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 `y::Foo`, found `x::Foo`
}
fn main() {
}