]> git.lizzy.rs Git - rust.git/blob - tests/ui/fully-qualified-type/fully-qualified-type-name2.rs
Rollup merge of #107780 - compiler-errors:instantiate-binder, r=lcnr
[rust.git] / tests / 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 `y::Foo`, found `x::Foo`
15 }
16
17 fn main() {
18 }