diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/bad-match.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/parser/bad-match.rs b/src/test/ui/parser/bad-match.rs new file mode 100644 index 000000000..04100d170 --- /dev/null +++ b/src/test/ui/parser/bad-match.rs @@ -0,0 +1,4 @@ +fn main() { + let isize x = 5; //~ ERROR expected one of `:`, `;`, `=`, `@`, or `|`, found `x` + match x; +} |