rust/tests/ui/parser/recover-field-extra-angle-brackets.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
248 B
Rust
Raw Normal View History

// 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() {}