/src/test/run-pass/typestate-cfg-nesting.rs
http://github.com/jruderman/rust · Rust · 12 lines · 9 code · 3 blank · 0 comment · 6 complexity · 53408ca38e35cfc67afd9bd3357de3f7 MD5 · raw file
- fn f() {
- let x = 10; let mut y = 11;
- if true { match x { _ => { y = x; } } } else { }
- }
- fn main() {
- let x = 10;
- let mut y = 11;
- if true { while false { y = x; } } else { }
- }