summary refs log tree commit diff
path: root/src/test/run-pass/let-destruct.rs
blob: 932cd3f0bd0e45d981a77b40768d3e42a9e57b73 (plain)
1
2
3
4
5
6
enum xx = int;

fn main() {
    let @{x: xx(x), y: y} = @{x: xx(10), y: 20};
    assert (x + y == 30);
}