error[E0283]: type annotations required: cannot resolve `_: Generator` | |
--> $DIR/E0283.rs:18:21 | |
| | |
LL | let cont: u32 = Generator::create(); //~ ERROR E0283 | |
| ^^^^^^^^^^^^^^^^^ | |
| | |
note: required by `Generator::create` | |
--> $DIR/E0283.rs:2:5 | |
| | |
LL | fn create() -> u32; | |
| ^^^^^^^^^^^^^^^^^^^ | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0283`. |