aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-4155.rs
blob: 9fae613c691a3b266d292d5fe6ed86b1d8d492f1 (plain)
1
2
3
4
5
6
7
struct Bug {
    inner: [(); match Vec::new {
        f @  |n() => 1
// { dg-error "failed to parse pattern to bind" "" { target *-*-* } .-1 }
// { dg-error "unexpected token .|. in pattern" "" { target *-*-* } .-2 }
    }],
}