LL | fn test4(a: &Box<bool>);
| ^^^^^^^^^^ help: try: `&bool`
-error: non-binding let on a type that implements `Drop`
- --> $DIR/borrow_box.rs:63:5
- |
-LL | let _ = foo;
- | ^^^^^^^^^^^^
- |
- = note: `#[deny(clippy::let_underscore_drop)]` on by default
- = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
-
error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> $DIR/borrow_box.rs:95:25
|
LL | pub fn test20(_display: &Box<(dyn Display + Send)>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&(dyn Display + Send)`
-error: aborting due to 11 previous errors
+error: aborting due to 10 previous errors