diff options
Diffstat (limited to 'src/test/ui/dropck/drop-with-active-borrows-1.rs')
| -rw-r--r-- | src/test/ui/dropck/drop-with-active-borrows-1.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/dropck/drop-with-active-borrows-1.rs b/src/test/ui/dropck/drop-with-active-borrows-1.rs deleted file mode 100644 index 1e924af296a..00000000000 --- a/src/test/ui/dropck/drop-with-active-borrows-1.rs +++ /dev/null @@ -1,8 +0,0 @@ -fn main() { - let a = "".to_string(); - let b: Vec<&str> = a.lines().collect(); - drop(a); //~ ERROR cannot move out of `a` because it is borrowed - for s in &b { - println!("{}", *s); - } -} |
