about summary refs log tree commit diff
path: root/tests/ui/moves/move-scalar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/moves/move-scalar.rs')
-rw-r--r--tests/ui/moves/move-scalar.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/moves/move-scalar.rs b/tests/ui/moves/move-scalar.rs
new file mode 100644
index 00000000000..98bfeb1bc05
--- /dev/null
+++ b/tests/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);
+}