summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3290.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-3290.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3290.rs b/src/test/ui/issues/issue-3290.rs
new file mode 100644
index 000000000..840c7ff83
--- /dev/null
+++ b/src/test/ui/issues/issue-3290.rs
@@ -0,0 +1,9 @@
+// run-pass
+#![feature(box_syntax)]
+#![allow(dead_code)]
+
+pub fn main() {
+ let mut x: Box<_> = box 3;
+ x = x;
+ assert_eq!(*x, 3);
+}