]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/print/generator-print-verbose-3.stderr
Add tests for updated closure/generator printing
[rust.git] / src / test / ui / generator / print / generator-print-verbose-3.stderr
1 error[E0308]: mismatched types
2   --> $DIR/generator-print-verbose-3.rs:7:25
3    |
4 LL |       let generator :() = || {
5    |  ____________________--___^
6    | |                    |
7    | |                    expected due to this
8 LL | |
9 LL | |         yield 1i32;
10 LL | |         return x
11 LL | |     };
12    | |_____^ expected `()`, found generator
13    |
14    = note: expected unit type `()`
15               found generator `[main::{closure#0} upvar_tys=(unavailable) _#5t]`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.