mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
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:
parent
603d820b85
commit
ff15a93d95
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user