diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs b/src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs deleted file mode 100644 index 1362fd8ce..000000000 --- a/src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs +++ /dev/null @@ -1,14 +0,0 @@ -// run-pass - -pub fn main() { - let mut x = None; - match x { - None => { - // It is ok to reassign x here, because there is in - // fact no outstanding loan of x! - x = Some(0); - } - Some(_) => { } - } - assert_eq!(x, Some(0)); -} |