]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/borrow_box.stderr
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / borrow_box.stderr
index a40789cd4263400601a3a1bada9ce4d0db746954..3eac32815be3fac2bb13dfa886623da7a91bb85f 100644 (file)
@@ -22,15 +22,6 @@ error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
 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
    |
@@ -73,5 +64,5 @@ error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
 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