]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-24780.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / 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>> {
6     //~^ ERROR expected `;` or `{`, found `>`
7     Vec::new()
8 }