2024-03-29 18:21:25 -05:00
|
|
|
//@ known-bug: #123157
|
2024-03-29 18:41:57 -05:00
|
|
|
//@ edition:2021
|
2024-03-29 18:21:25 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
struct Foo((u32, u32));
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
type T = impl Copy;
|
|
|
|
let foo: T = Foo((1u32, 2u32));
|
|
|
|
let x = move || {
|
|
|
|
let x = move || {
|
|
|
|
let Foo((a, b)) = foo;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|