blob: 58500ffe3dc1cf71b22ca82434710a07f36d8322 [file] [log] [blame]
// 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 `>`
//
// compile-flags: -Z parse-only
fn foo() -> Vec<usize>> {
//~^ ERROR expected one of `!`, `+`, `::`, `where`, or `{`, found `>`
Vec::new()
}