fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/generator-print-verbose-3.rs:7:25 3 | 4LL | let generator :() = || { 5 | ____________________--___^ 6 | | | 7 | | expected due to this 8LL | | 9LL | | yield 1i32; 10LL | | return x 11LL | | }; 12 | |_____^ expected `()`, found generator 13 | 14 = note: expected unit type `()` 15 found generator `{main::{closure#0} upvar_tys=(unavailable)}` 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.