mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00
12 lines
360 B
Plaintext
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`.
|