diff options
Diffstat (limited to 'src/test/compile-fail/match-vec-unreachable.rs')
| -rw-r--r-- | src/test/compile-fail/match-vec-unreachable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/match-vec-unreachable.rs b/src/test/compile-fail/match-vec-unreachable.rs index d3630ed107e..2e3b5e399f1 100644 --- a/src/test/compile-fail/match-vec-unreachable.rs +++ b/src/test/compile-fail/match-vec-unreachable.rs @@ -18,7 +18,7 @@ fn main() { _ => () } - let x: Vec<~str> = vec!(~"foo", ~"bar", ~"baz"); + let x: Vec<~str> = vec!("foo".to_owned(), "bar".to_owned(), "baz".to_owned()); let x: &[~str] = x.as_slice(); match x { [a, _, _, ..] => { println!("{}", a); } |
