1 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2 --> $DIR/borrow_box.rs:6:19
4 LL | pub fn test1(foo: &mut Box<bool>) {
5 | ^^^^^^^^^^^^^^ help: try: `&mut bool`
7 note: lint level defined here
8 --> $DIR/borrow_box.rs:1:9
10 LL | #![deny(clippy::borrowed_box)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
14 --> $DIR/borrow_box.rs:11:14
16 LL | let foo: &Box<bool>;
17 | ^^^^^^^^^^ help: try: `&bool`
19 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
20 --> $DIR/borrow_box.rs:15:10
22 LL | foo: &'a Box<bool>,
23 | ^^^^^^^^^^^^^ help: try: `&'a bool`
25 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
26 --> $DIR/borrow_box.rs:19:17
28 LL | fn test4(a: &Box<bool>);
29 | ^^^^^^^^^^ help: try: `&bool`
31 error: aborting due to 4 previous errors