diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-uninit-in-assignop.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-uninit-in-assignop.rs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/ui/borrowck/borrowck-uninit-in-assignop.rs b/src/test/ui/borrowck/borrowck-uninit-in-assignop.rs deleted file mode 100644 index 92c3692bd..000000000 --- a/src/test/ui/borrowck/borrowck-uninit-in-assignop.rs +++ /dev/null @@ -1,34 +0,0 @@ -// Tests that the use of uninitialized variable in assignment operator -// expression is detected. - -pub fn main() { - let x: isize; - x += 1; //~ ERROR E0381 - - let x: isize; - x -= 1; //~ ERROR E0381 - - let x: isize; - x *= 1; //~ ERROR E0381 - - let x: isize; - x /= 1; //~ ERROR E0381 - - let x: isize; - x %= 1; //~ ERROR E0381 - - let x: isize; - x ^= 1; //~ ERROR E0381 - - let x: isize; - x &= 1; //~ ERROR E0381 - - let x: isize; - x |= 1; //~ ERROR E0381 - - let x: isize; - x <<= 1; //~ ERROR E0381 - - let x: isize; - x >>= 1; //~ ERROR E0381 -} |