diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/unmatched-delimiter-at-end-of-file.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/parser/unmatched-delimiter-at-end-of-file.rs b/src/test/ui/parser/unmatched-delimiter-at-end-of-file.rs new file mode 100644 index 000000000..f56013266 --- /dev/null +++ b/src/test/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 |