mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
21 lines
310 B
Rust
21 lines
310 B
Rust
// check-pass
|
|
#![allow(dead_code)]
|
|
// pretty-expanded FIXME #23616
|
|
|
|
struct Str([u8]);
|
|
|
|
#[derive(Clone)]
|
|
struct CharSplits<'a, Sep> {
|
|
string: &'a Str,
|
|
sep: Sep,
|
|
allow_trailing_empty: bool,
|
|
only_ascii: bool,
|
|
finished: bool,
|
|
}
|
|
|
|
fn clone(s: &Str) -> &Str {
|
|
Clone::clone(&s)
|
|
}
|
|
|
|
fn main() {}
|