We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16f276b commit 79c2788Copy full SHA for 79c2788
src/test/ui/primitive-binop-lhs-mut.rs
@@ -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