summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/move-arg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/moves/move-arg.rs')
-rw-r--r--tests/ui/moves/move-arg.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/moves/move-arg.rs b/tests/ui/moves/move-arg.rs
new file mode 100644
index 000000000..5942cd89f
--- /dev/null
+++ b/tests/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); }