87dc85d322
Fix #22488.
16 lines
288 B
Rust
16 lines
288 B
Rust
// run-rustfix
|
|
#![allow(dead_code)]
|
|
struct U <T> {
|
|
wtf: Option<Box<U<T>>>,
|
|
x: T,
|
|
}
|
|
fn main() {
|
|
U {
|
|
wtf: Some(Box(U { //~ ERROR cannot initialize a tuple struct which contains private fields
|
|
wtf: None,
|
|
x: (),
|
|
})),
|
|
x: ()
|
|
};
|
|
}
|