summaryrefslogtreecommitdiffstats
path: root/src/test/ui/moves/move-arg.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/moves/move-arg.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/moves/move-arg.rs b/src/test/ui/moves/move-arg.rs
new file mode 100644
index 000000000..5942cd89f
--- /dev/null
+++ b/src/test/ui/moves/move-arg.rs
@@ -0,0 +1,5 @@
+// run-pass
+
+fn test(foo: isize) { assert_eq!(foo, 10); }
+
+pub fn main() { let x = 10; test(x); }