blob: 983d694c440897e4d6107864e84352ef7d909071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Test that we use fully-qualified type names in error messages.
//@ dont-require-annotations: NOTE
mod x {
pub enum Foo { }
}
mod y {
pub enum Foo { }
}
fn bar(x: x::Foo) -> y::Foo {
return x;
//~^ ERROR mismatched types
//~| NOTE expected `y::Foo`, found `x::Foo`
}
fn main() {
}
|