]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2631-b.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-2631-b.rs
1 // run-pass
2
3 // aux-build:issue-2631-a.rs
4
5 extern crate req;
6
7 use req::request;
8 use std::cell::RefCell;
9 use std::collections::HashMap;
10 use std::rc::Rc;
11
12 pub fn main() {
13   let v = vec![Rc::new("hi".to_string())];
14   let mut m: req::header_map = HashMap::new();
15   m.insert("METHOD".to_string(), Rc::new(RefCell::new(v)));
16   request::<isize>(&m);
17 }