blob: b929122a6c23fccee8f2d15ea70ee4459b7885bf [file] [log] [blame]
// compile-flags: --edition=2021 --crate-type=lib
// rustc-env:RUST_BACKTRACE=0
// check-pass
// tracked in https://github.com/rust-lang/rust/issues/96572
#![feature(type_alias_impl_trait)]
fn main() {
type T = impl Copy;
let foo: T = (1u32, 2u32);
let (a, b) = foo; // this line used to make the code fail
}