mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
16 lines
452 B
Rust
16 lines
452 B
Rust
// When there are too many opening `<`s, the compiler would previously
|
|
// suggest nonsense if the `<`s were interspersed with other tokens:
|
|
//
|
|
// error: unmatched angle brackets
|
|
// --> unmatched-langle.rs:2:10
|
|
// |
|
|
// 2 | foo::<Ty<<<i32>();
|
|
// | ^^^ help: remove extra angle brackets
|
|
//
|
|
// This test makes sure that this is no longer happening.
|
|
|
|
fn main() {
|
|
foo::<Ty<<<i32>();
|
|
//~^ ERROR: expected `::`, found `(`
|
|
}
|