mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +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]
|
|
}
|