]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/for.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / for.rs
index a354d2216a9c777acdb829a4bddd36264c65a17d..3bf053eb874ce62496ffc1ac6426596b1468d5b9 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 struct Foo {}
 
 pub fn main() {
@@ -15,5 +5,6 @@ pub fn main() {
     // 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
+        //~| ERROR cannot move out of a shared reference
     }
 }