mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
16 lines
293 B
Rust
16 lines
293 B
Rust
// run-rustfix
|
|
#![allow(dead_code)]
|
|
struct U <T> {
|
|
wtf: Option<Box<U<T>>>,
|
|
x: T,
|
|
}
|
|
fn main() {
|
|
U {
|
|
wtf: Some(Box::new(U { //~ ERROR cannot initialize a tuple struct which contains private fields
|
|
wtf: None,
|
|
x: (),
|
|
})),
|
|
x: ()
|
|
};
|
|
}
|