diff options
Diffstat (limited to 'tests/ui/parser/unmatched-delimiter-at-end-of-file.rs')
-rw-r--r-- | tests/ui/parser/unmatched-delimiter-at-end-of-file.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/unmatched-delimiter-at-end-of-file.rs b/tests/ui/parser/unmatched-delimiter-at-end-of-file.rs new file mode 100644 index 000000000..f56013266 --- /dev/null +++ b/tests/ui/parser/unmatched-delimiter-at-end-of-file.rs @@ -0,0 +1,11 @@ +struct S { + x: usize, + y: usize, +} + +fn main() { + S { x: 4, + y: 5 }; +} + +fn foo() { //~ ERROR this file contains an unclosed delimiter |