summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/issue-82772-match-box-as-struct.rs
blob: c1bfcc73402ced39b796d01e55c0d3e7725f2dd5 (plain)
1
2
3
4
5
6
// This used to ICE in exhaustiveness checking. Explanation here:
// https://github.com/rust-lang/rust/issues/82772#issuecomment-905946768
fn main() {
    let Box { 1: _, .. }: Box<()>; //~ ERROR field `1` of
    let Box { .. }: Box<()>;
}