Files
rust/tests/ui/static/static-struct-with-option-8578.rs

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

21 lines
512 B
Rust
Raw Normal View History

2025-07-13 16:56:31 -04:00
// https://github.com/rust-lang/rust/issues/8578
//@ check-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
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() {}