diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-06-12 19:12:19 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-06-19 19:38:37 +0200 |
| commit | 620a8536f614936237de9eb7a043dac46356512c (patch) | |
| tree | b371286b223e5a2d3e826e8a68c103ccb1e50ea7 | |
| parent | 2d4df5b53e92513ddd250be545ff7c015135451b (diff) | |
| download | rust-620a8536f614936237de9eb7a043dac46356512c.tar.gz rust-620a8536f614936237de9eb7a043dac46356512c.zip | |
updates to compile-fail tests for changes to NLL.
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/borrowck/borrowck-issue-14498.rs b/src/test/compile-fail/borrowck/borrowck-issue-14498.rs index fbdd013024d..3c5f932af47 100644 --- a/src/test/compile-fail/borrowck/borrowck-issue-14498.rs +++ b/src/test/compile-fail/borrowck/borrowck-issue-14498.rs @@ -27,7 +27,7 @@ fn indirect_write_to_imm_box() { let y: Box<_> = box &mut x; let p = &y; ***p = 2; //[ast]~ ERROR cannot assign to data in a `&` reference - //[mir]~^ ERROR cannot assign to data in a `&` reference + //[mir]~^ ERROR cannot assign to `***p` drop(p); } diff --git a/src/test/compile-fail/borrowck/borrowck-overloaded-index-ref-index.rs b/src/test/compile-fail/borrowck/borrowck-overloaded-index-ref-index.rs index 109fe3d1128..f4f40e0407f 100644 --- a/src/test/compile-fail/borrowck/borrowck-overloaded-index-ref-index.rs +++ b/src/test/compile-fail/borrowck/borrowck-overloaded-index-ref-index.rs @@ -70,6 +70,6 @@ fn main() { }; s[2] = 20; //[ast]~^ ERROR cannot assign to immutable indexed content - //[mir]~^^ ERROR cannot assign to immutable item + //[mir]~^^ ERROR cannot assign to data in a `&` reference drop(rs); } diff --git a/src/test/compile-fail/unboxed-closures-mutated-upvar-from-fn-closure.rs b/src/test/compile-fail/unboxed-closures-mutated-upvar-from-fn-closure.rs index 0dbd61413e0..f20719ec7fa 100644 --- a/src/test/compile-fail/unboxed-closures-mutated-upvar-from-fn-closure.rs +++ b/src/test/compile-fail/unboxed-closures-mutated-upvar-from-fn-closure.rs @@ -23,6 +23,6 @@ fn main() { call(|| { counter += 1; //[ast]~^ ERROR cannot assign to data in a captured outer variable in an `Fn` closure - //[mir]~^^ ERROR cannot assign to immutable item `counter` + //[mir]~^^ ERROR cannot assign to `counter` }); } |
