4 clippy::needless_pass_by_value,
5 clippy::blacklisted_name,
10 ($init:expr, $x:ty) => {
11 let _: Box<$x> = Box::new($init);
16 boxit!(Vec::new(), Vec<u8>);
18 fn test(foo: Box<Vec<bool>>) {}
20 fn test2(foo: Box<dyn Fn(Vec<u32>)>) {
21 // pass if #31 is fixed
25 fn test_local_not_linted() {
26 let _: Box<Vec<bool>>;
29 // All of these test should be allowed because they are part of the
30 // public api and `avoid_breaking_exported_api` is `false` by default.
31 pub fn pub_test(foo: Box<Vec<bool>>) {}
32 pub fn pub_test_ret() -> Box<Vec<bool>> {