rust/tests/ui/impl-trait/auto-trait-contains-err.stderr
2024-12-26 19:21:43 +00:00

12 lines
360 B
Plaintext

error[E0277]: `()` is not a future
--> $DIR/auto-trait-contains-err.rs:5:24
|
LL | fn invalid_future() -> impl Future {}
| ^^^^^^^^^^^ `()` is not a future
|
= help: the trait `Future` is not implemented for `()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.