diff options
| author | David Wood <david@davidtw.co> | 2018-11-04 18:36:30 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-11-04 18:36:30 +0100 |
| commit | ba09ed520864b5c64f56aa2311ee18fa72a3ceb6 (patch) | |
| tree | 4ab647f5dbda73f6ee811e8636e5a12ed5afae09 /src/rustllvm/RustWrapper.cpp | |
| parent | 1854dde30a56a7fa135ec4f0be435d8de11ff1c1 (diff) | |
| download | rust-ba09ed520864b5c64f56aa2311ee18fa72a3ceb6.tar.gz rust-ba09ed520864b5c64f56aa2311ee18fa72a3ceb6.zip | |
Update test to force error under NLL.
In each of the three cases in this test, there is a mutable borrow of some field of the union and then a shared borrow of some other field immediately following. Under NLL, the mutable borrow is killed straight away as it isn't used later - therefore not causing a conflict with the shared borrow. This commit adds a use of the first mutable borrow to force the intended errors to appear under NLL.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
