]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/send_str_hashmap.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / send_str_hashmap.rs
index bfeff58b802df7150f2b5b4d37670a36bc2dfaed..c58654670d1a3f4bb4b90e9956595fb19893df48 100644 (file)
@@ -11,8 +11,9 @@
 extern crate collections;
 
 use std::collections::HashMap;
-use std::str::SendStr;
-use std::borrow::IntoCow;
+use std::borrow::{Cow, IntoCow};
+
+type SendStr = Cow<'static, String, str>;
 
 pub fn main() {
     let mut map: HashMap<SendStr, uint> = HashMap::new();