1 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2 --> borrow_box.rs:10:19
4 10 | pub fn test1(foo: &Box<bool>) { //~ ERROR you seem to be trying to use `&Box<T>`
7 = note: #[deny(borrowed_box)] implied by #[deny(clippy)]
8 note: lint level defined here
13 = help: replace `&Box<T>` with simply `&T`
15 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
16 --> borrow_box.rs:19:10
18 19 | foo: &'a Box<bool> //~ ERROR you seem to be trying to use `&Box<T>`
21 = note: #[deny(borrowed_box)] implied by #[deny(clippy)]
22 = help: replace `&Box<T>` with simply `&T`
24 error: aborting due to previous error(s)
26 error: Could not compile `clippy_tests`.
28 To learn more, run the command again with --verbose.