diff options
Diffstat (limited to 'tests/ui/issues/issue-27054-primitive-binary-ops.rs')
-rw-r--r-- | tests/ui/issues/issue-27054-primitive-binary-ops.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-27054-primitive-binary-ops.rs b/tests/ui/issues/issue-27054-primitive-binary-ops.rs new file mode 100644 index 000000000..c6f925de5 --- /dev/null +++ b/tests/ui/issues/issue-27054-primitive-binary-ops.rs @@ -0,0 +1,5 @@ +// run-pass +fn main() { + let x = &mut 1; + assert_eq!(*x + { *x=2; 1 }, 2); +} |