4 clippy::needless_pass_by_value,
5 clippy::blacklisted_name,
9 use std::collections::HashMap;
12 ($init:expr, $x:ty) => {
13 let _: Box<$x> = Box::new($init);
18 boxit!(Vec::new(), Vec<u8>);
21 fn test(foo: Box<Vec<bool>>) {}
23 fn test2(foo: Box<dyn Fn(Vec<u32>)>) {
24 // pass if #31 is fixed
28 fn test3(foo: Box<String>) {}
30 fn test4(foo: Box<HashMap<String, String>>) {}
32 fn test_local_not_linted() {
33 let _: Box<Vec<bool>>;
36 // All of these test should be allowed because they are part of the
37 // public api and `avoid_breaking_exported_api` is `false` by default.
38 pub fn pub_test(foo: Box<Vec<bool>>) {}
40 pub fn pub_test_ret() -> Box<Vec<bool>> {