]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/in-trait/return-type-suggestion.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / async-await / in-trait / return-type-suggestion.stderr
CommitLineData
487cf647
FG
1warning: 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 |
4LL | #![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
10error[E0308]: mismatched types
11 --> $DIR/return-type-suggestion.rs:8:9
12 |
13LL | 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
21error: aborting due to previous error; 1 warning emitted
22
23For more information about this error, try `rustc --explain E0308`.