mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 03:57:38 +00:00
18 lines
639 B
Plaintext
18 lines
639 B
Plaintext
![]() |
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} upvar_tys=?7t witness=?8t}`
|
||
|
| |
|
||
|
| expected `async` closure body, found `()`
|
||
|
|
|
||
|
= note: expected `async` closure body `{static main::{closure#0}::{closure#0} upvar_tys=?7t witness=?8t}`
|
||
|
found unit type `()`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0308`.
|