aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/typestate-cfg-nesting.rs
blob: b8b4e58d128516e26269ca613389c135f9b68626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fn f() {

  auto x = 10;
  auto y = 11;
  if (true) {
    alt (x) {
      case (_) {
        y = x;
      }
    }
  } else {
  }
}

fn main() {

  auto x = 10;
  auto y = 11;
  if (true) {
    while (false) {
        y = x;
    }
  } else {
  }
}