]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/fully-qualified-type-name2.rs:12:12
b7449926 3 |
9fa01778
XL
4LL | fn bar(x: x::Foo) -> y::Foo {
5 | ------ expected `y::Foo` because of return type
b7449926 6LL | return x;
0731742a 7 | ^ expected enum `y::Foo`, found enum `x::Foo`
b7449926 8 |
0731742a
XL
9 = note: expected type `y::Foo`
10 found type `x::Foo`
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.