rust/tests/crashes/125553.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
287 B
Rust
Raw 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;
};
};
}