2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2012-06-15 14:55:36 -07:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:issue-2631-a.rs
|
|
|
|
|
2012-09-11 17:46:20 -07:00
|
|
|
extern mod req;
|
2012-06-15 14:55:36 -07:00
|
|
|
|
2012-09-05 12:32:05 -07:00
|
|
|
use req::*;
|
2013-05-20 17:07:24 -07:00
|
|
|
use std::hashmap::HashMap;
|
2012-06-15 14:55:36 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2012-09-12 10:38:17 -07:00
|
|
|
let v = ~[@~"hi"];
|
2013-04-03 09:28:36 -04:00
|
|
|
let mut m: req::header_map = HashMap::new();
|
2013-03-07 23:44:38 -05:00
|
|
|
m.insert(~"METHOD", @mut v);
|
2013-03-23 21:22:00 -04:00
|
|
|
request::<int>(&m);
|
2012-06-15 14:55:36 -07:00
|
|
|
}
|