]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / fully-qualified-type / fully-qualified-type-name2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/fully-qualified-type-name2.rs:12:12
3    |
4 LL | fn bar(x: x::Foo) -> y::Foo {
5    |                      ------ expected `y::Foo` because of return type
6 LL |     return x;
7    |            ^ expected enum `y::Foo`, found enum `x::Foo`
8    |
9    = note: expected type `y::Foo`
10               found type `x::Foo`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.