From ff15a93d952f0456c8e88d320bb1be27b7801443 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 9 Mar 2011 14:12:08 -0800 Subject: [PATCH] rustc: Make test/run-pass/generic-tag-alt.rs valid Rust; it was passing a dynamically-sized value by value instead of by alias --- src/test/run-pass/generic-tag-alt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-pass/generic-tag-alt.rs b/src/test/run-pass/generic-tag-alt.rs index 4f04e729dfd..9b19eec7388 100644 --- a/src/test/run-pass/generic-tag-alt.rs +++ b/src/test/run-pass/generic-tag-alt.rs @@ -2,7 +2,7 @@ tag foo[T] { arm(T); } -fn altfoo[T](foo[T] f) { +fn altfoo[T](&foo[T] f) { auto hit = false; alt (f) { case (arm[T](?x)) {