]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-24780.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / ui / parser / issues / 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>> { //~ ERROR expected one of `!`, `+`, `::`, `where`, or `{`, found `>`
6     Vec::new()
7 }
8
9 fn main() {}