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