summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-8578.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-8578.rs')
-rw-r--r--src/test/ui/issues/issue-8578.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-8578.rs b/src/test/ui/issues/issue-8578.rs
new file mode 100644
index 000000000..2346ef5a9
--- /dev/null
+++ b/src/test/ui/issues/issue-8578.rs
@@ -0,0 +1,20 @@
+// check-pass
+#![allow(dead_code)]
+#![allow(non_camel_case_types)]
+#![allow(non_upper_case_globals)]
+// pretty-expanded FIXME #23616
+
+pub struct UninterpretedOption_NamePart {
+ name_part: Option<String>,
+}
+
+impl<'a> UninterpretedOption_NamePart {
+ pub fn default_instance() -> &'static UninterpretedOption_NamePart {
+ static instance: UninterpretedOption_NamePart = UninterpretedOption_NamePart {
+ name_part: None,
+ };
+ &instance
+ }
+}
+
+pub fn main() {}