2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2013-10-23 08:49:18 +00:00
|
|
|
|
2012-06-15 21:55:36 +00:00
|
|
|
//@ aux-build:issue-2631-a.rs
|
|
|
|
|
2014-02-14 18:10:06 +00:00
|
|
|
extern crate req;
|
2012-06-15 21:55:36 +00:00
|
|
|
|
2013-10-03 03:00:54 +00:00
|
|
|
use req::request;
|
2013-12-31 23:46:27 +00:00
|
|
|
use std::cell::RefCell;
|
2014-05-30 02:03:06 +00:00
|
|
|
use std::collections::HashMap;
|
2014-10-02 05:10:09 +00:00
|
|
|
use std::rc::Rc;
|
2012-06-15 21:55:36 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2016-10-29 21:54:04 +00:00
|
|
|
let v = vec![Rc::new("hi".to_string())];
|
2013-04-03 13:28:36 +00:00
|
|
|
let mut m: req::header_map = HashMap::new();
|
2014-10-02 05:10:09 +00:00
|
|
|
m.insert("METHOD".to_string(), Rc::new(RefCell::new(v)));
|
2015-03-26 00:06:52 +00:00
|
|
|
request::<isize>(&m);
|
2012-06-15 21:55:36 +00:00
|
|
|
}
|