aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/xfail/struct_field_vis.rs
blob: a28729e6208fcbf861c60b82ec5c02031a5fee99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-xfail-if "pub visibility not supported #432"  *-*-* }

mod foomod {
    pub struct Foo {
        pub f: i32,
        pub g: u32,
    }
}

fn test() -> foomod::Foo {
    foomod::Foo{
        f:1,
        g:3,
    }
}