Sign in
fuchsia
/
third_party
/
rust
/
HEAD
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
drain_collect_nostd.rs
blob: 69dcb1c4165861626551b151add9902941e3c4bf [
file
]
#![
warn
(
clippy
::
drain_collect
)]
#![
no_std
]
extern
crate alloc
;
use
alloc
::
vec
::
Vec
;
fn
remove_all
(
v
:
&
mut
Vec
<
i32
>)
->
Vec
<
i32
>
{
v
.
drain
(..).
collect
()
//~^ drain_collect
}