]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-2502.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / issue-2502.rs
index 2ee5b2e60de3e6495b61c8c49100af1e1182f202..cfdd226ef5c28939254a081e4f8479df2e0537da 100644 (file)
@@ -9,16 +9,16 @@
 // except according to those terms.
 
 struct font<'a> {
-    fontbuf: &'a ~[u8],
+    fontbuf: &'a Vec<u8> ,
 }
 
 impl<'a> font<'a> {
-    pub fn buf(&self) -> &'a ~[u8] {
+    pub fn buf(&self) -> &'a Vec<u8> {
         self.fontbuf
     }
 }
 
-fn font<'r>(fontbuf: &'r ~[u8]) -> font<'r> {
+fn font<'r>(fontbuf: &'r Vec<u8> ) -> font<'r> {
     font {
         fontbuf: fontbuf
     }