summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-field-extra-angle-brackets.rs
blob: 5e0e00bcb5e8d3eed1c34a9cd6c73d38e4a9eb2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Tests that we recover from extra trailing angle brackets
// in a struct field

struct BadStruct {
    first: Vec<u8>>, //~ ERROR unmatched angle bracket
    second: bool
}

fn bar(val: BadStruct) {
    val.first;
    val.second;
}

fn main() {}