Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a test for #27054
  • Loading branch information
varkor committed Mar 12, 2019
1 parent b4b8a6e commit 1dea6e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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.