about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/recurse-ice-129215.stderr
blob: 98c7be2a5a3f265aec96319877895ae707c01a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error[E0277]: `()` is not a future
  --> $DIR/recurse-ice-129215.rs:6:5
   |
LL |     a()
   |     ^^^ `()` is not a future
   |
   = help: the trait `Future` is not implemented for `()`

error[E0277]: `()` is not a future
  --> $DIR/recurse-ice-129215.rs:3:1
   |
LL | async fn a() {
   | ^^^^^^^^^^^^ `()` is not a future
   |
   = help: the trait `Future` is not implemented for `()`

error[E0308]: mismatched types
  --> $DIR/recurse-ice-129215.rs:3:14
   |
LL |   async fn a() {
   |  ______________^
LL | |
LL | |
LL | |     a()
LL | | }
   | |_^ expected `()`, found `async` fn body
   |
   = note:    expected unit type `()`
           found `async` fn body `{async fn body of a()}`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.