1error[E0308]: mismatched types
2  --> $DIR/fully-qualified-type-name2.rs:12:12
3   |
4LL | fn bar(x: x::Foo) -> y::Foo {
5   |                      ------ expected `y::Foo` because of return type
6LL |     return x;
7   |            ^ expected enum `y::Foo`, found enum `x::Foo`
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0308`.
12