]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/borrowck-pat-reassign-no-binding.rs
add xfail-fast directives for borrowck tests
[rust.git] / src / test / run-pass / borrowck-pat-reassign-no-binding.rs
1 // xfail-fast  (compile-flags unsupported on windows)
2 // compile-flags:--borrowck=err
3
4 fn main() {
5     let mut x = none;
6     alt x {
7       none {
8         // It is ok to reassign x here, because there is in
9         // fact no outstanding loan of x!
10         x = some(0);
11       }
12       some(_) { }
13     }
14 }