about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorPaul Daniel Faria <nashenas88@users.noreply.github.com>2017-11-11 16:13:23 -0500
committerNiko Matsakis <niko@alum.mit.edu>2017-11-22 03:51:54 -0500
commit47c6db09ee35810005274017abcd0798d6978a47 (patch)
treeba7bfeed4de18ca8814e576febb29659f7b9dbc3 /src/test/compile-fail
parentfe32df9adbdc076386b5b65f74bb29fe169f1547 (diff)
downloadrust-47c6db09ee35810005274017abcd0798d6978a47.tar.gz
rust-47c6db09ee35810005274017abcd0798d6978a47.zip
Remove attributes and test comments accidentally left behind, add in span_mirbugs
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/nll/reference-carried-through-struct-field.rs (renamed from src/test/compile-fail/aggregate-rvalues-typeck.rs)2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/compile-fail/aggregate-rvalues-typeck.rs b/src/test/compile-fail/nll/reference-carried-through-struct-field.rs
index 99f3e461ec9..afde2540829 100644
--- a/src/test/compile-fail/aggregate-rvalues-typeck.rs
+++ b/src/test/compile-fail/nll/reference-carried-through-struct-field.rs
@@ -17,8 +17,6 @@ struct Wrap<'a> { w: &'a mut u32 }
 fn foo() {
     let mut x = 22;
     let wrapper = Wrap { w: &mut x };
-    //~^ ERROR cannot assign to `x` because it is borrowed (Mir) [E0506]
-    //~^^ ERROR cannot use `x` because it was mutably borrowed (Mir) [E0503]
     x += 1; //[ast]~ ERROR cannot assign to `x` because it is borrowed [E0506]
     //[mir]~^ ERROR cannot assign to `x` because it is borrowed (Ast) [E0506]
     //[mir]~^^ ERROR cannot assign to `x` because it is borrowed (Mir) [E0506]