diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-break-uninit-2.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-break-uninit-2.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/borrowck/borrowck-break-uninit-2.rs b/src/test/ui/borrowck/borrowck-break-uninit-2.rs deleted file mode 100644 index 3abca33a8..000000000 --- a/src/test/ui/borrowck/borrowck-break-uninit-2.rs +++ /dev/null @@ -1,14 +0,0 @@ -fn foo() -> isize { - let x: isize; - - while 1 != 2 { - break; - x = 0; - } - - println!("{}", x); //~ ERROR E0381 - - return 17; -} - -fn main() { println!("{}", foo()); } |