]> git.proxmox.com Git - rustc.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr
New upstream version 1.34.2+dfsg1
[rustc.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`.