about summary refs log tree commit diff
path: root/src/test/ui/parser/issue-24780.rs
blob: 8b46aa2bf22a173c011606e74b1ee8fcd928cc02 (plain)
1
2
3
4
5
6
7
8
// Verify that '>' is not both expected and found at the same time, as it used
// to happen in #24780. For example, following should be an error:
// expected one of ..., `>`, ... found `>`

fn foo() -> Vec<usize>> {
    //~^ ERROR expected `;` or `{`, found `>`
    Vec::new()
}