summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2005-default-binding-mode/for.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2005-default-binding-mode/for.rs')
-rw-r--r--tests/ui/rfc-2005-default-binding-mode/for.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/ui/rfc-2005-default-binding-mode/for.rs b/tests/ui/rfc-2005-default-binding-mode/for.rs
deleted file mode 100644
index d6c5a13b1..000000000
--- a/tests/ui/rfc-2005-default-binding-mode/for.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-struct Foo {}
-
-pub fn main() {
- let mut tups = vec![(Foo {}, Foo {})];
- // The below desugars to &(ref n, mut m).
- for (n, mut m) in &tups {
- //~^ ERROR cannot move out of a shared reference
- }
-}