diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-12 15:42:39 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-12 16:13:13 -0700 |
| commit | ee7d03f7d7691e7ada44c29e09edebb2cf3791c5 (patch) | |
| tree | 3488e2d12fbd03333e7204f7a5f6c562865ac863 /src/test/compile-fail/nested-ty-params.rs | |
| parent | 594c7fb0c6eb997afa7da32a2a6b4f0f78522c3f (diff) | |
| download | rust-ee7d03f7d7691e7ada44c29e09edebb2cf3791c5.tar.gz rust-ee7d03f7d7691e7ada44c29e09edebb2cf3791c5.zip | |
Convert most working tests to ivecs
I tried to pay attention to what was actually being tested so, e.g. when I test was just using a vec as a boxed thing, I converted to boxed ints, etc. Haven't converted the macro tests yet. Not sure what to do there.
Diffstat (limited to 'src/test/compile-fail/nested-ty-params.rs')
| -rw-r--r-- | src/test/compile-fail/nested-ty-params.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/nested-ty-params.rs b/src/test/compile-fail/nested-ty-params.rs index f70623e9e02..99e762f8459 100644 --- a/src/test/compile-fail/nested-ty-params.rs +++ b/src/test/compile-fail/nested-ty-params.rs @@ -1,5 +1,5 @@ // error-pattern:Attempt to use a type argument out of scope -fn hd[U](v: &vec[U]) -> U { - fn hd1(w: &vec[U]) -> U { ret w.(0); } +fn hd[U](v: &[U]) -> U { + fn hd1(w: &[U]) -> U { ret w.(0); } ret hd1(v); } \ No newline at end of file |
