about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-11-04 18:36:30 +0100
committerDavid Wood <david@davidtw.co>2018-11-04 18:36:30 +0100
commitba09ed520864b5c64f56aa2311ee18fa72a3ceb6 (patch)
tree4ab647f5dbda73f6ee811e8636e5a12ed5afae09 /src/rustllvm/RustWrapper.cpp
parent1854dde30a56a7fa135ec4f0be435d8de11ff1c1 (diff)
downloadrust-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