2012-06-15 16:55:36 -05:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:issue-2631-a.rs
|
|
|
|
|
|
|
|
use req;
|
|
|
|
use std;
|
|
|
|
|
|
|
|
import req::*;
|
|
|
|
import std::map::*;
|
|
|
|
import std::map::str_hash;
|
|
|
|
import dvec;
|
|
|
|
|
|
|
|
fn main() {
|
2012-07-12 17:03:33 -05:00
|
|
|
let v = ~[mut @"hi"/~];
|
2012-06-15 16:55:36 -05:00
|
|
|
let m: req::header_map = str_hash();
|
|
|
|
m.insert("METHOD", @dvec::from_vec(v));
|
|
|
|
request::<int>(m);
|
|
|
|
}
|