aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-4145.rs
blob: 98b33cade11235a58113a39480b57cdb29afb95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-excess-errors "warnings" }

struct S {
    field: [u8; {
        #[path = "outer/inner.rs"]
        // { dg-warning "error handling module file for .inner." "#4145" { xfail *-*-* } .+1 }
        mod inner;
        // OK
        0
    }],
}

fn main() {}