summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unmatched-langle-2.rs
blob: 8de0d7d89e4e72b2134b7e140b142c46a4f363a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 `(`
}