about summary refs log tree commit diff
path: root/tests/crashes/137467-2.rs
blob: a70ea92b22dc250af8965b28151e38d6b77e8f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ known-bug: #137467
//@ edition: 2021

enum Camera {
    Normal { base_transform: i32 },
    Volume { transform: i32 },
}

fn draw_ui(camera: &mut Camera) {
    || {
        let (Camera::Normal {
            base_transform: _,
        }
        | Camera::Volume {
            transform: _,
        }) = camera;
    };
}