1 error[E0308]: mismatched types
2 --> $DIR/generator-print-verbose-3.rs:7:25
4 LL | let generator :() = || {
5 | ____________________--___^
7 | | expected due to this
12 | |_____^ expected `()`, found generator
14 = note: expected unit type `()`
15 found generator `[main::{closure#0} upvar_tys=(unavailable) _#5t]`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.