Skip to content

Commit 79c2788

Browse files
committed
Add a test for rust-lang#27054
1 parent 16f276b commit 79c2788

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// run-pass
2+
3+
fn main() {
4+
let x = Box::new(0);
5+
assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
6+
}

0 commit comments

Comments
 (0)