]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / type-alias-impl-trait / cross_inference_pattern_bug.rs
1 // compile-flags: --edition=2021
2 #![feature(type_alias_impl_trait)]
3
4 fn main() {
5     type T = impl Copy; //~ ERROR unconstrained opaque type
6     let foo: T = (1u32, 2u32);
7     let (a, b): (u32, u32) = foo;
8 }