about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/drain_collect_nostd.stderr
blob: 91b38932fee79cea21cc33ec3b72c6aeabb5a53e (plain)
1
2
3
4
5
6
7
8
9
10
11
error: you seem to be trying to move all elements into a new `Vec`
  --> tests/ui/drain_collect_nostd.rs:7:5
   |
LL |     v.drain(..).collect()
   |     ^^^^^^^^^^^^^^^^^^^^^ help: consider using `mem::take`: `core::mem::take(v)`
   |
   = note: `-D clippy::drain-collect` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::drain_collect)]`

error: aborting due to 1 previous error