mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
287 B
Rust
16 lines
287 B
Rust
//@ known-bug: rust-lang/rust#125553
|
|
//@ edition:2021
|
|
|
|
#[derive(Copy, Clone)]
|
|
struct Foo((u32, u32));
|
|
|
|
fn main() {
|
|
type T = impl Copy(Copy, Clone)
|
|
let foo: T = Foo((1u32, 1u32));
|
|
let x = move || {
|
|
let derive = move || {
|
|
let Foo((a, b)) = foo;
|
|
};
|
|
};
|
|
}
|