mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
10 lines
179 B
Rust
10 lines
179 B
Rust
#![warn(clippy::drain_collect)]
|
|
#![no_std]
|
|
extern crate alloc;
|
|
use alloc::vec::Vec;
|
|
|
|
fn remove_all(v: &mut Vec<i32>) -> Vec<i32> {
|
|
core::mem::take(v)
|
|
//~^ drain_collect
|
|
}
|