#[link(name = "req")]; #[crate_type = "lib"]; #[legacy_exports]; extern mod std; use dvec::*; use dvec::DVec; use std::map::HashMap; type header_map = HashMap<~str, @DVec<@~str>>; // the unused ty param is necessary so this gets monomorphized fn request(req: header_map) { let _x = copy *(copy *req.get(~"METHOD"))[0u]; }