2016-02-06 18:42:17 +01:00
|
|
|
// 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:
|
2020-10-29 08:26:42 -07:00
|
|
|
// expected one of ..., `>`, ... found `>`.
|
2016-02-06 18:42:17 +01:00
|
|
|
|
2021-12-04 11:05:30 -07:00
|
|
|
fn foo() -> Vec<usize>> { //~ ERROR expected one of `!`, `+`, `::`, `where`, or `{`, found `>`
|
2016-02-06 18:42:17 +01:00
|
|
|
Vec::new()
|
|
|
|
}
|
2020-10-25 14:20:44 -07:00
|
|
|
|
|
|
|
fn main() {}
|