]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-38002.rs
3 // Check that constant ADTs are codegened OK, part k of N.
17 const LIST
: [(usize, Foo
); 2] = [
18 (51, Foo
::B { y: 42, z: Bar::C }
),
19 (52, Foo
::B { y: 45, z: Bar::C }
),
25 (51, Foo
::B { y: 42, z: Bar::C }
),
26 (52, Foo
::B { y: 45, z: Bar::C }
)
29 // I would want to print the enum here, but if
30 // the discriminant is garbage this causes an
31 // `unreachable` and silent process exit.
32 panic
!("trivial match failed")