rust/src/test/run-pass/issue-2631-b.rs

17 lines
273 B
Rust
Raw Normal View History

2012-06-15 21:55:36 +00:00
// xfail-fast
// aux-build:issue-2631-a.rs
extern mod req;
extern mod std;
2012-06-15 21:55:36 +00:00
2012-09-05 19:32:05 +00:00
use req::*;
use std::map::*;
use std::map::str_hash;
2012-06-15 21:55:36 +00:00
fn main() {
let v = ~[mut @~"hi"];
2012-06-15 21:55:36 +00:00
let m: req::header_map = str_hash();
m.insert(~"METHOD", @dvec::from_vec(v));
2012-06-15 21:55:36 +00:00
request::<int>(m);
}