]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs
Fix off by one error and add ui test.
[rust.git] / src / test / ui / type-alias-impl-trait / cross_inference_pattern_bug.rs
1 // compile-flags: --edition=2021
2 // check-pass
3 #![feature(type_alias_impl_trait)]
4
5 fn main() {
6     type T = impl Copy;
7     let foo: T = (1u32, 2u32);
8     let (a, b): (u32, u32) = foo;
9 }