]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-24780.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / issue-24780.rs
1 // Verify that '>' is not both expected and found at the same time, as it used
2 // to happen in #24780. For example, following should be an error:
3 // expected one of ..., `>`, ... found `>`
4
5 fn foo() -> Vec<usize>> {
6     //~^ ERROR expected one of `!`, `+`, `::`, `where`, or `{`, found `>`
7     Vec::new()
8 }