rust/tests/crashes/125553.rs

16 lines
287 B
Rust
Raw Permalink Normal View History

//@ 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;
};
};
}