]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/in-trait/deep-match.stderr
Rollup merge of #105405 - sunfishcode:sunfishcode/export-dynamic, r=TaKO8Ki
[rust.git] / src / test / ui / impl-trait / in-trait / deep-match.stderr
1 error[E0053]: method `bar` has an incompatible return type for trait
2   --> $DIR/deep-match.rs:11:17
3    |
4 LL |     fn bar() -> i32 { 0 }
5    |                 ^^^
6    |                 |
7    |                 expected struct `Wrapper`, found `i32`
8    |                 return type in trait
9    |
10    = note: expected struct `Wrapper<_>`
11                 found type `i32`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0053`.