summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0009.rs
blob: 0610d03cfe96d0cef8c54a60d797f526f86879b1 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    struct X { x: (), }
    let x = Some((X { x: () }, X { x: () }));
    match x {
        Some((y, ref z)) => {},
        //~^ ERROR E0009
        None => panic!()
    }
}