]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
c34b1796 | 2 | |
223e47cc LB |
3 | pub fn main() { |
4 | let mut x = None; | |
5 | match x { | |
6 | None => { | |
7 | // It is ok to reassign x here, because there is in | |
8 | // fact no outstanding loan of x! | |
85aaf69f | 9 | x = Some(0); |
223e47cc LB |
10 | } |
11 | Some(_) => { } | |
12 | } | |
1a4d82fc | 13 | assert_eq!(x, Some(0)); |
223e47cc | 14 | } |