1 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2 --> $DIR/borrow_box.rs:19:14
4 LL | let foo: &Box<bool>;
5 | ^^^^^^^^^^ help: try: `&bool`
7 note: the lint level is 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:23:10
16 LL | foo: &'a Box<bool>,
17 | ^^^^^^^^^^^^^ help: try: `&'a bool`
19 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
20 --> $DIR/borrow_box.rs:27:17
22 LL | fn test4(a: &Box<bool>);
23 | ^^^^^^^^^^ help: try: `&bool`
25 error: aborting due to 3 previous errors