PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/src/test/run-pass/typestate-cfg-nesting.rs

http://github.com/jruderman/rust
Rust | 12 lines | 9 code | 3 blank | 0 comment | 5 complexity | 53408ca38e35cfc67afd9bd3357de3f7 MD5 | raw file
 1
 2
 3fn f() {
 4    let x = 10; let mut y = 11;
 5    if true { match x { _ => { y = x; } } } else { }
 6}
 7
 8fn main() {
 9    let x = 10;
10    let mut y = 11;
11    if true { while false { y = x; } } else { }
12}