]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-js-std/parser-errors.js
Auto merge of #96907 - sunfishcode:sunfishcode/update-wasi, r=Mark-Simulacrum
[rust.git] / src / test / rustdoc-js-std / parser-errors.js
index 779ab867c12b1afc7adcf34a5418d2638bee889a..dc42031e05f2f21f2522fe94e1a6fbade387fec8 100644 (file)
@@ -35,6 +35,8 @@ const QUERY = [
     "a,:",
     "  a<>  :",
     "mod : :",
+    "a!a",
+    "a!!",
 ];
 
 const PARSED = [
@@ -362,4 +364,22 @@ const PARSED = [
         userQuery: "mod : :",
         error: 'Unexpected `:`',
     },
+    {
+        elems: [],
+        foundElems: 0,
+        original: "a!a",
+        returned: [],
+        typeFilter: -1,
+        userQuery: "a!a",
+        error: '`!` can only be at the end of an ident',
+    },
+    {
+        elems: [],
+        foundElems: 0,
+        original: "a!!",
+        returned: [],
+        typeFilter: -1,
+        userQuery: "a!!",
+        error: 'Cannot have more than one `!` in an ident',
+    },
 ];