]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-70971.stderr
Rollup merge of #105027 - aDotInTheVoid:rdj-foreign-variant-test, r=GuillaumeGomez
[rust.git] / src / test / ui / impl-trait / issues / issue-70971.stderr
1 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in variable binding
2   --> $DIR/issue-70971.rs:2:14
3    |
4 LL |     let x : (impl Copy,) = (true,);
5    |              ^^^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0562`.