]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/variant-attributes.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / variant-attributes.rs
index 2b200c8af308a41bf00fd532d72437282523cca1..88255ad94fd46fb5c6ec44e965886937b18cf014 100644 (file)
@@ -34,6 +34,9 @@ enum crew_of_enterprise_d {
     geordi_la_forge,
 }
 
-fn boldly_go(_crew_member: crew_of_enterprise_d, _where: ~str) { }
+fn boldly_go(_crew_member: crew_of_enterprise_d, _where: String) { }
 
-pub fn main() { boldly_go(worf, "where no one has gone before".to_owned()); }
+pub fn main() {
+    boldly_go(crew_of_enterprise_d::worf,
+              "where no one has gone before".to_string());
+}