diff options
Diffstat (limited to 'tests/ui/parser/recover/turbofish-arg-with-stray-colon.rs')
| -rw-r--r-- | tests/ui/parser/recover/turbofish-arg-with-stray-colon.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/recover/turbofish-arg-with-stray-colon.rs b/tests/ui/parser/recover/turbofish-arg-with-stray-colon.rs new file mode 100644 index 00000000000..32125211a91 --- /dev/null +++ b/tests/ui/parser/recover/turbofish-arg-with-stray-colon.rs @@ -0,0 +1,6 @@ +fn foo() { + let x = Tr<A, A:>; + //~^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` +} + +fn main() {} |
