blob: 6b8d1780f2d396b5e227e432ee5350b777275509 [file]
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:19:14
|
LL | let foo: &Box<bool>;
| ^^^^^^^^^^ help: consider using just `&T`: `&bool`
|
note: the lint level is defined here
--> tests/ui/borrowed_box.rs:1:9
|
LL | #![deny(clippy::borrowed_box)]
| ^^^^^^^^^^^^^^^^^^^^
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:24:10
|
LL | foo: &'a Box<bool>,
| ^^^^^^^^^^^^^ help: consider using just `&T`: `&'a bool`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:29:17
|
LL | fn test4(a: &Box<bool>);
| ^^^^^^^^^^ help: consider using just `&T`: `&bool`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:90:25
|
LL | pub fn test14(_display: &Box<dyn Display>) {}
| ^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&dyn Display`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:93:25
|
LL | pub fn test15(_display: &Box<dyn Display + Send>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&(dyn Display + Send)`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:96:29
|
LL | pub fn test16<'a>(_display: &'a Box<dyn Display + 'a>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&'a (dyn Display + 'a)`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:99:25
|
LL | pub fn test17(_display: &Box<impl Display>) {}
| ^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&impl Display`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:102:25
|
LL | pub fn test18(_display: &Box<impl Display + Send>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&(impl Display + Send)`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:105:29
|
LL | pub fn test19<'a>(_display: &'a Box<impl Display + 'a>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&'a (impl Display + 'a)`
error: you seem to be trying to use `&Box<T>`
--> tests/ui/borrowed_box.rs:111:25
|
LL | pub fn test20(_display: &Box<(dyn Display + Send)>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using just `&T`: `&(dyn Display + Send)`
error: aborting due to 10 previous errors