rustc: Make test/run-pass/generic-tag-alt.rs valid Rust; it was passing a dynamically-sized value by value instead of by alias

This commit is contained in:
Patrick Walton 2011-03-09 14:12:08 -08:00
parent 603d820b85
commit ff15a93d95

View File

@ -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)) {