]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-58504.stderr
Rollup merge of #105063 - aDotInTheVoid:rdj-dont-assume-core, r=notriddle
[rust.git] / src / test / ui / impl-trait / issues / issue-58504.stderr
1 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in variable binding
2   --> $DIR/issue-58504.rs:10:16
3    |
4 LL |     let gens: [impl Generator<Return=!, Yield=()>;2] = [ mk_gen(), mk_gen() ];
5    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0562`.