]> git.proxmox.com Git - rustc.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name2.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / fully-qualified-type / fully-qualified-type-name2.rs
1 // Test that we use fully-qualified type names in error messages.
2
3 mod x {
4 pub enum Foo { }
5 }
6
7 mod y {
8 pub enum Foo { }
9 }
10
11 fn bar(x: x::Foo) -> y::Foo {
12 return x;
13 //~^ ERROR mismatched types
14 //~| expected enum `y::Foo`, found enum `x::Foo`
15 }
16
17 fn main() {
18 }