diff options
Diffstat (limited to 'src/test/ui/rfc-2005-default-binding-mode/for.rs')
| -rw-r--r-- | src/test/ui/rfc-2005-default-binding-mode/for.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/rfc-2005-default-binding-mode/for.rs b/src/test/ui/rfc-2005-default-binding-mode/for.rs index 35f8fbb9b71..e9004c13a0e 100644 --- a/src/test/ui/rfc-2005-default-binding-mode/for.rs +++ b/src/test/ui/rfc-2005-default-binding-mode/for.rs @@ -16,5 +16,6 @@ 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 bind by-move and by-ref in the same pattern } }  | 
