summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/mem_forget.stderr
blob: 3b0e839e0871a398013317ea48ca2bb08589cb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
error: usage of `mem::forget` on `Drop` type
  --> tests/ui/mem_forget.rs:14:5
   |
LL |     memstuff::forget(six);
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: argument has type `std::sync::Arc<i32>`
   = note: `-D clippy::mem-forget` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::mem_forget)]`

error: usage of `mem::forget` on `Drop` type
  --> tests/ui/mem_forget.rs:19:5
   |
LL |     std::mem::forget(seven);
   |     ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: argument has type `std::rc::Rc<i32>`

error: usage of `mem::forget` on `Drop` type
  --> tests/ui/mem_forget.rs:24:5
   |
LL |     forgetSomething(eight);
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: argument has type `std::vec::Vec<i32>`

error: usage of `mem::forget` on type with `Drop` fields
  --> tests/ui/mem_forget.rs:29:5
   |
LL |     std::mem::forget(string);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: argument has type `std::string::String`

error: aborting due to 4 previous errors