diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-12-24 13:37:39 +0200 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-12-24 14:56:52 +0200 |
| commit | 17d4e9be2afba44c05135752b837bbd1b7b5bee6 (patch) | |
| tree | 976316e9e61a8a7fdf5aef6050239141cad8052a /src/test/compile-fail | |
| parent | 063b998950f9fcf77630fa820b24375d45426469 (diff) | |
| download | rust-17d4e9be2afba44c05135752b837bbd1b7b5bee6.tar.gz rust-17d4e9be2afba44c05135752b837bbd1b7b5bee6.zip | |
Make killing of out-of-scope borrows a pre-statement effect
Fixes #46875. Fixes #46917. Fixes #46935.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/borrowck/two-phase-activation-sharing-interference.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck/two-phase-activation-sharing-interference.rs b/src/test/compile-fail/borrowck/two-phase-activation-sharing-interference.rs index b6f5e17f1f6..a9797e4d215 100644 --- a/src/test/compile-fail/borrowck/two-phase-activation-sharing-interference.rs +++ b/src/test/compile-fail/borrowck/two-phase-activation-sharing-interference.rs @@ -56,7 +56,6 @@ fn should_also_eventually_be_ok_with_nll() { let _z = &x; *y += 1; //[lxl]~^ ERROR cannot borrow `x` as mutable because it is also borrowed as immutable - //[nll]~^^ ERROR cannot borrow `x` as mutable because it is also borrowed as immutable } fn main() { } |
