blob: 480d9bc2bade0d3506eec9a9bb0d9f704dbdd31a (
plain)
1
2
3
4
5
6
7
8
9
|
// 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 one of `!`, `+`, `::`, `;`, `where`, or `{`, found `>`
Vec::new()
}
fn main() {}
|