]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issues/issue-24780.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-24780.rs
CommitLineData
7453a54e
SL
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:
29967ef6 3// expected one of ..., `>`, ... found `>`.
d9579d0f 4
a2a8927a 5fn foo() -> Vec<usize>> { //~ ERROR expected one of `!`, `+`, `::`, `where`, or `{`, found `>`
7453a54e 6 Vec::new()
223e47cc 7}
29967ef6
XL
8
9fn main() {}