#[link(name = "req")]; #[crate_type = "lib"]; use std; import dvec::*; import dvec::DVec; import 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 = *(*req.get(~"METHOD"))[0u]; }