mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
12 lines
231 B
Rust
12 lines
231 B
Rust
//@ check-pass
|
|
|
|
// RSplit<T, P> previously required T: Clone in order to be Clone
|
|
|
|
struct NotClone;
|
|
|
|
fn main() {
|
|
let elements = [NotClone, NotClone, NotClone];
|
|
let rsplit = elements.rsplit(|_| false);
|
|
rsplit.clone();
|
|
}
|