Skip to content

Commit 0df193f

Browse files
committed
Add a test for #27054
1 parent 42a89c6 commit 0df193f

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)