summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/def-path.stderr
blob: dae45825f370dba8928113bd716d5f89dd6c3f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0308]: mismatched types
  --> $DIR/def-path.rs:9:9
   |
LL |     let x = async || {};
   |                      -- the expected `async` closure body
LL |
LL |     let () = x();
   |         ^^   --- this expression has type `{static main::{closure#0}::{closure#0}<?7t> upvar_tys=?15t witness=?6t}`
   |         |
   |         expected `async` closure body, found `()`
   |
   = note: expected `async` closure body `{static main::{closure#0}::{closure#0}<?7t> upvar_tys=?15t witness=?6t}`
                         found unit type `()`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.