mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
10 lines
340 B
Rust
10 lines
340 B
Rust
// Check that a suggestion is issued if there are too many `<`s in a
|
|
// generic argument list, and that the parser recovers properly.
|
|
|
|
fn main() {
|
|
foo::<<<<Ty<i32>>();
|
|
//~^ ERROR: unmatched angle brackets
|
|
//~| ERROR: cannot find function `foo` in this scope [E0425]
|
|
//~| ERROR: cannot find type `Ty` in this scope [E0412]
|
|
}
|