summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-19037.rs
blob: 74623da145470e958922253e60f192fd75584d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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() {}