1
1
error: 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
3
3
|
4
4
LL | let foo: &Box<bool>;
5
5
| ^^^^^^^^^^ help: try: `&bool`
@@ -11,55 +11,55 @@ LL | #![deny(clippy::borrowed_box)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: 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
15
15
|
16
16
LL | foo: &'a Box<bool>,
17
17
| ^^^^^^^^^^^^^ help: try: `&'a bool`
18
18
19
19
error: 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
21
21
|
22
22
LL | fn test4(a: &Box<bool>);
23
23
| ^^^^^^^^^^ help: try: `&bool`
24
24
25
25
error: 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
27
27
|
28
28
LL | pub fn test14(_display: &Box<dyn Display>) {}
29
29
| ^^^^^^^^^^^^^^^^^ help: try: `&dyn Display`
30
30
31
31
error: 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
33
33
|
34
34
LL | pub fn test15(_display: &Box<dyn Display + Send>) {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(dyn Display + Send)`
36
36
37
37
error: 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
39
39
|
40
40
LL | pub fn test16<'a>(_display: &'a Box<dyn Display + 'a>) {}
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a (dyn Display + 'a)`
42
42
43
43
error: 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
45
45
|
46
46
LL | pub fn test17(_display: &Box<impl Display>) {}
47
47
| ^^^^^^^^^^^^^^^^^^ help: try: `&impl Display`
48
48
49
49
error: 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
51
51
|
52
52
LL | pub fn test18(_display: &Box<impl Display + Send>) {}
53
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(impl Display + Send)`
54
54
55
55
error: 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
57
57
|
58
58
LL | pub fn test19<'a>(_display: &'a Box<impl Display + 'a>) {}
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a (impl Display + 'a)`
60
60
61
61
error: 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
63
63
|
64
64
LL | pub fn test20(_display: &Box<(dyn Display + Send)>) {}
65
65
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(dyn Display + Send)`
0 commit comments