aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/invalid-misc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/invalid-misc.rs')
-rw-r--r--test-suite/tests/invalid-misc.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/tests/invalid-misc.rs b/test-suite/tests/invalid-misc.rs
index 80421e3..5c7f779 100644
--- a/test-suite/tests/invalid-misc.rs
+++ b/test-suite/tests/invalid-misc.rs
@@ -17,4 +17,12 @@ fn bad() {
bad("a = -0x1");
bad("a = 0x-1");
+
+ // Dotted keys.
+ bad("a.b.c = 1
+ a.b = 2
+ ");
+ bad("a = 1
+ a.b = 2");
+ bad("a = {k1 = 1, k1.name = \"joe\"}")
}