diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-storage-dead.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-storage-dead.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/borrowck/borrowck-storage-dead.rs b/src/test/ui/borrowck/borrowck-storage-dead.rs deleted file mode 100644 index fe9844610..000000000 --- a/src/test/ui/borrowck/borrowck-storage-dead.rs +++ /dev/null @@ -1,24 +0,0 @@ -fn ok() { - loop { - let _x = 1; - } -} - -fn also_ok() { - loop { - let _x = String::new(); - } -} - -fn fail() { - loop { - let x: i32; - let _ = x + 1; //~ERROR [E0381] - } -} - -fn main() { - ok(); - also_ok(); - fail(); -} |