diff options
Diffstat (limited to 'tests/ui/moves/move-arg.rs')
-rw-r--r-- | tests/ui/moves/move-arg.rs | 5 |
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); } |