summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/ivec-pass-by-value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/array-slice-vec/ivec-pass-by-value.rs')
-rw-r--r--src/test/ui/array-slice-vec/ivec-pass-by-value.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/ivec-pass-by-value.rs b/src/test/ui/array-slice-vec/ivec-pass-by-value.rs
new file mode 100644
index 000000000..e22aef963
--- /dev/null
+++ b/src/test/ui/array-slice-vec/ivec-pass-by-value.rs
@@ -0,0 +1,4 @@
+// run-pass
+
+fn f(_a: Vec<isize> ) { }
+pub fn main() { f(vec![1, 2, 3, 4, 5]); }