11error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2- --> $DIR/borrow_box.rs:20 :14
2+ --> $DIR/borrow_box.rs:24 :14
33 |
44LL | let foo: &Box<bool>;
55 | ^^^^^^^^^^ help: try: `&bool`
@@ -11,55 +11,55 @@ LL | #![deny(clippy::borrowed_box)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
14- --> $DIR/borrow_box.rs:24 :10
14+ --> $DIR/borrow_box.rs:28 :10
1515 |
1616LL | foo: &'a Box<bool>,
1717 | ^^^^^^^^^^^^^ help: try: `&'a bool`
1818
1919error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
20- --> $DIR/borrow_box.rs:28 :17
20+ --> $DIR/borrow_box.rs:32 :17
2121 |
2222LL | fn test4(a: &Box<bool>);
2323 | ^^^^^^^^^^ help: try: `&bool`
2424
2525error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
26- --> $DIR/borrow_box.rs:94 :25
26+ --> $DIR/borrow_box.rs:98 :25
2727 |
2828LL | pub fn test14(_display: &Box<dyn Display>) {}
2929 | ^^^^^^^^^^^^^^^^^ help: try: `&dyn Display`
3030
3131error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
32- --> $DIR/borrow_box.rs:95 :25
32+ --> $DIR/borrow_box.rs:99 :25
3333 |
3434LL | pub fn test15(_display: &Box<dyn Display + Send>) {}
3535 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(dyn Display + Send)`
3636
3737error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
38- --> $DIR/borrow_box.rs:96 :29
38+ --> $DIR/borrow_box.rs:100 :29
3939 |
4040LL | pub fn test16<'a>(_display: &'a Box<dyn Display + 'a>) {}
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a (dyn Display + 'a)`
4242
4343error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
44- --> $DIR/borrow_box.rs:98 :25
44+ --> $DIR/borrow_box.rs:102 :25
4545 |
4646LL | pub fn test17(_display: &Box<impl Display>) {}
4747 | ^^^^^^^^^^^^^^^^^^ help: try: `&impl Display`
4848
4949error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
50- --> $DIR/borrow_box.rs:99 :25
50+ --> $DIR/borrow_box.rs:103 :25
5151 |
5252LL | pub fn test18(_display: &Box<impl Display + Send>) {}
5353 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(impl Display + Send)`
5454
5555error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
56- --> $DIR/borrow_box.rs:100 :29
56+ --> $DIR/borrow_box.rs:104 :29
5757 |
5858LL | pub fn test19<'a>(_display: &'a Box<impl Display + 'a>) {}
5959 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a (impl Display + 'a)`
6060
6161error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
62- --> $DIR/borrow_box.rs:105 :25
62+ --> $DIR/borrow_box.rs:109 :25
6363 |
6464LL | pub fn test20(_display: &Box<(dyn Display + Send)>) {}
6565 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(dyn Display + Send)`
0 commit comments