mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
291 B
Rust
17 lines
291 B
Rust
//@ known-bug: #123157
|
|
//@ edition:2021
|
|
#![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;
|
|
};
|
|
};
|
|
}
|