mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +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]
|
|
}
|