2022-09-09 16:57:38 -05:00
|
|
|
error[E0053]: method `bar` has an incompatible return type for trait
|
2022-09-02 16:02:59 -05:00
|
|
|
--> $DIR/deep-match.rs:11:17
|
|
|
|
|
|
|
|
|
LL | fn bar() -> i32 { 0 }
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected struct `Wrapper`, found `i32`
|
2022-09-09 16:57:38 -05:00
|
|
|
| return type in trait
|
2022-09-02 16:02:59 -05:00
|
|
|
|
|
2022-09-09 16:57:38 -05:00
|
|
|
= note: expected struct `Wrapper<_>`
|
|
|
|
found type `i32`
|
2022-09-02 16:02:59 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0053`.
|