]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr
Remove E0308 note when primary label has all info
[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 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0308`.