]> git.lizzy.rs Git - rust.git/commit
Add more UI tests for swap
authorCristian Kubis <cristian.kubis@tsunix.de>
Mon, 2 Sep 2019 12:15:52 +0000 (14:15 +0200)
committerCristian Kubis <cristian.kubis@tsunix.de>
Mon, 2 Sep 2019 12:15:52 +0000 (14:15 +0200)
commit9041856ab9785c8dd97aa47be8798e4126fbd504
tree0b64ffd136f29280cada5528a3ea40699316e4d1
parent8bc1ded805ba25db8c926786946b71ea7a0c6ef8
Add more UI tests for swap

These tests make sure that the swap warning will not be triggered
for expressions that will cause multiple mutable references of the
same owner
tests/ui/swap.rs
tests/ui/swap.stderr