summaryrefslogtreecommitdiffstats
path: root/src/test/ui/moves/move-scalar.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/moves/move-scalar.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/moves/move-scalar.rs b/src/test/ui/moves/move-scalar.rs
new file mode 100644
index 000000000..98bfeb1bc
--- /dev/null
+++ b/src/test/ui/moves/move-scalar.rs
@@ -0,0 +1,10 @@
+// run-pass
+#![allow(unused_mut)]
+
+pub fn main() {
+
+ let y: isize = 42;
+ let mut x: isize;
+ x = y;
+ assert_eq!(x, 42);
+}