about summary refs log tree commit diff
path: root/tests/crashes/137467-1.rs
blob: b6bff2bdc4e86ab937801cca5c10077aed01fdc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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: _transform,
        }
        | Camera::Volume {
            transform: _transform,
        }) = camera;
    };
}