about summary refs log tree commit diff
path: root/tests/ui/impl-trait/auto-trait-contains-err.stderr
blob: 4da6b285ae15a9d78a47b06a3b5e2a473385e532 (plain)
1
2
3
4
5
6
7
8
9
10
11
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`.