Skip to content
Permalink
Browse files

Add a test for #27054

  • Loading branch information...
varkor committed Feb 25, 2019
1 parent b4b8a6e commit 1dea6e00def29caf081458f78c711c62dd992726
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/test/ui/primitive-binop-lhs-mut.rs
@@ -0,0 +1,6 @@
// run-pass

fn main() {
let x = Box::new(0);
assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
}

0 comments on commit 1dea6e0

Please sign in to comment.
You can’t perform that action at this time.