rust/src/test/ui/union
David Wood ba09ed5208
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.
2018-11-04 18:36:30 +01:00
..
union-borrow-move-parent-sibling.nll.stderr Update test to force error under NLL. 2018-11-04 18:36:30 +01:00
union-borrow-move-parent-sibling.rs Update test to force error under NLL. 2018-11-04 18:36:30 +01:00
union-borrow-move-parent-sibling.stderr Update test to force error under NLL. 2018-11-04 18:36:30 +01:00
union-const-eval.rs Place unions, pointer casts and pointer derefs behind extra feature gates 2018-08-07 14:41:33 +02:00
union-const-pat.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-const-pat.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-copy.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-copy.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-derive-clone.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-derive-clone.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-derive-eq.rs
union-derive-eq.stderr update tests 2018-03-14 00:53:24 +01:00
union-derive.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-derive.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-empty.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-empty.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-fields-1.rs
union-fields-1.stderr Update UI tests 2018-02-26 20:24:02 +03:00
union-fields-2.rs Remove NOTE/HELP annotations from UI tests 2017-12-14 23:26:39 +03:00
union-fields-2.stderr Reduce diagnostic verbosity by removing labels 2018-03-19 19:59:34 -07:00
union-generic.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-generic.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-lint-dead-code.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-lint-dead-code.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-nonrepresentable.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-nonrepresentable.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-repr-c.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-repr-c.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-sized-field.rs Fix typo in error message E0277 2018-07-10 23:10:13 +02:00
union-sized-field.stderr Fix doc link (again) 2018-08-05 07:52:29 +02:00
union-suggest-field.rs Remove NOTE/HELP annotations from UI tests 2017-12-14 23:26:39 +03:00
union-suggest-field.stderr update tests 2018-03-14 00:53:24 +01:00
union-unsafe.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-unsafe.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-unsized.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-unsized.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-with-drop-fields-lint.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
union-with-drop-fields-lint.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00