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