]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19037.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-19037.rs
1 // check-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 struct Str([u8]);
6
7 #[derive(Clone)]
8 struct CharSplits<'a, Sep> {
9     string: &'a Str,
10     sep: Sep,
11     allow_trailing_empty: bool,
12     only_ascii: bool,
13     finished: bool,
14 }
15
16 fn clone(s: &Str) -> &Str {
17     Clone::clone(&s)
18 }
19
20 fn main() {}