]>
Commit | Line | Data |
---|---|---|
487cf647 FG |
1 | warning: the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes |
2 | --> $DIR/return-type-suggestion.rs:3:12 | |
3 | | | |
4 | LL | #![feature(async_fn_in_trait)] | |
5 | | ^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information | |
8 | = note: `#[warn(incomplete_features)]` on by default | |
9 | ||
10 | error[E0308]: mismatched types | |
11 | --> $DIR/return-type-suggestion.rs:8:9 | |
12 | | | |
13 | LL | Ok(()) | |
14 | | ^^^^^^- help: consider using a semicolon here: `;` | |
15 | | | | |
16 | | expected `()`, found enum `Result` | |
17 | | | |
18 | = note: expected unit type `()` | |
19 | found enum `Result<(), _>` | |
20 | ||
21 | error: aborting due to previous error; 1 warning emitted | |
22 | ||
23 | For more information about this error, try `rustc --explain E0308`. |