]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/immut-function-arguments.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / immut-function-arguments.rs
index 61a074952efd289fc51a51f3678b854848fdb851..242a33e8216d8d9024a2ce4e3d4a837f6821c181 100644 (file)
@@ -1,24 +1,9 @@
-// Copyright 2012 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.
-
-// revisions: ast mir
-//[mir]compile-flags: -Z borrowck=mir
-
 fn f(y: Box<isize>) {
-    *y = 5; //[ast]~ ERROR cannot assign
-            //[mir]~^ ERROR cannot assign
+    *y = 5; //~ ERROR cannot assign
 }
 
 fn g() {
-    let _frob = |q: Box<isize>| { *q = 2; }; //[ast]~ ERROR cannot assign
-    //[mir]~^ ERROR cannot assign
+    let _frob = |q: Box<isize>| { *q = 2; }; //~ ERROR cannot assign
 }
 
 fn main() {}