summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mem_forget.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/mem_forget.stderr')
-rw-r--r--src/tools/clippy/tests/ui/mem_forget.stderr15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/mem_forget.stderr b/src/tools/clippy/tests/ui/mem_forget.stderr
index a90d8b165..8004b2aa8 100644
--- a/src/tools/clippy/tests/ui/mem_forget.stderr
+++ b/src/tools/clippy/tests/ui/mem_forget.stderr
@@ -4,6 +4,7 @@ error: usage of `mem::forget` on `Drop` type
LL | memstuff::forget(six);
| ^^^^^^^^^^^^^^^^^^^^^
|
+ = note: argument has type `std::sync::Arc<i32>`
= note: `-D clippy::mem-forget` implied by `-D warnings`
error: usage of `mem::forget` on `Drop` type
@@ -11,12 +12,24 @@ error: usage of `mem::forget` on `Drop` type
|
LL | std::mem::forget(seven);
| ^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: argument has type `std::rc::Rc<i32>`
error: usage of `mem::forget` on `Drop` type
--> $DIR/mem_forget.rs:20:5
|
LL | forgetSomething(eight);
| ^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: argument has type `std::vec::Vec<i32>`
+
+error: usage of `mem::forget` on type with `Drop` fields
+ --> $DIR/mem_forget.rs:23:5
+ |
+LL | std::mem::forget(string);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: argument has type `std::string::String`
-error: aborting due to 3 previous errors
+error: aborting due to 4 previous errors