summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-19037.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-19037.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-19037.rs b/src/test/ui/issues/issue-19037.rs
new file mode 100644
index 000000000..74623da14
--- /dev/null
+++ b/src/test/ui/issues/issue-19037.rs
@@ -0,0 +1,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() {}