2 #![allow(clippy::boxed_local, clippy::needless_pass_by_value)]
3 #![allow(clippy::blacklisted_name)]
6 ($init:expr, $x:ty) => {
7 let _: Box<$x> = Box::new($init);
12 boxit!(Vec::new(), Vec<u8>);
14 pub fn test(foo: Box<Vec<bool>>) {
15 println!("{:?}", foo.get(0))
18 pub fn test2(foo: Box<Fn(Vec<u32>)>) {
19 // pass if #31 is fixed
23 pub fn test_local_not_linted() {
24 let _: Box<Vec<bool>>;
28 test(Box::new(Vec::new()));
29 test2(Box::new(|v| println!("{:?}", v)));
31 test_local_not_linted();