Add negative tests for types in local declarations in the `LINKEDLIST`
and `BOX_VEC` lints. They share a pass with `BORROWED_BOX` which does
check local delclarations.
foo(vec![1, 2, 3])
}
+pub fn test_local_not_linted() {
+ let _: Box<Vec<bool>>;
+}
+
fn main(){
test(Box::new(Vec::new()));
test2(Box::new(|v| println!("{:?}", v)));
test_macro();
+ test_local_not_linted();
}
unimplemented!();
}
+pub fn test_local_not_linted() {
+ let _: LinkedList<u8>;
+}
+
fn main(){
test(LinkedList::new());
+ test_local_not_linted();
}