summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr
blob: aed7f72c660df187956c8965c0bc3bb4174bb161 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: mismatched types
  --> $DIR/fully-qualified-type-name2.rs:12:12
   |
LL | fn bar(x: x::Foo) -> y::Foo {
   |                      ------ expected `y::Foo` because of return type
LL |     return x;
   |            ^ expected enum `y::Foo`, found enum `x::Foo`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.