Skip to content

Commit

Permalink
Add a test for rust-lang#27054
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Feb 27, 2019
1 parent 42a89c6 commit 0df193f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/primitive-binop-lhs-mut.rs
Original file line number Diff line number Diff line change
@@ -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 0df193f

Please sign in to comment.