rust/tests/ui/issues/issue-19037.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
312 B
Rust
Raw Normal View History

//@ 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() {}