Compiling futuretest v0.1.0 (file:///mnt/d/GIT/futuretest) error[E0308]: match arms have incompatible types --> src/main.rs:21:13 | 21 | / match err { 22 | | ErrorCode::Case1 => case1(), 23 | | ErrorCode::Case2 => case2(), 24 | | } | |_____________^ expected anonymized type, found a different anonymized type | = note: expected type `impl futures::Future` (anonymized type) found type `impl futures::Future` (anonymized type) note: match arm with an incompatible type --> src/main.rs:23:37 | 23 | ErrorCode::Case2 => case2(), | ^^^^^^^ error: aborting due to previous error error: Could not compile `futuretest`. To learn more, run the command again with --verbose.