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/shadow.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/shadow.rs')
| -rw-r--r-- | src/test/compile-fail/shadow.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/test/compile-fail/shadow.rs b/src/test/compile-fail/shadow.rs index 24bbf4fd9ff..73cf4ac9655 100644 --- a/src/test/compile-fail/shadow.rs +++ b/src/test/compile-fail/shadow.rs @@ -1,15 +1,15 @@ // -*- rust -*- // error-pattern:src/test/compile-fail/shadow.rs -fn foo(c: vec[int]) { +fn foo(c: [int]) { let a: int = 5; - let b: vec[int] = []; + let b: [int] = ~[]; alt none[int] { - some[int](_) { for i: int in c { log a; let a = 17; b += [a]; } } + some[int](_) { for i: int in c { log a; let a = 17; b += ~[a]; } } } } tag t[T] { none; some(T); } -fn main() { foo([]); } \ No newline at end of file +fn main() { foo(~[]); } \ No newline at end of file | 
