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