rust/tests/crashes/126667.rs

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

15 lines
254 B
Rust
Raw Normal View History

2024-06-23 16:14:44 +00:00
//@ known-bug: rust-lang/rust#126667
#![warn(rust_2021_compatibility)]
trait Static<'a> {}
struct Foo((u32, u32));
fn main() {
type T = impl Static;
let foo: T = Foo((1u32, 2u32));
let x = move || {
let Foo((a, b)) = foo;
};
}