summary refs log tree commit diff
path: root/src/test/run-pass/unique-pat-3.rs
blob: 034404f7a3fb55f9d3ac1fb7ed2e6dd9d38dce4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12

enum bar { u(~int), w(int), }

fn main() {
    assert alt u(~10) {
      u(a) {
        log(error, a);
        *a
      }
      _ { 66 }
    } == 10;
}