mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
15 lines
248 B
Rust
15 lines
248 B
Rust
// 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() {}
|