summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/suggest-box-new.fixed
blob: f5ae5c2abfd99a3596338a45c34494b9224ddf05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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: ()
    };
}