rust/src/test/rustdoc-js-std/parser-errors.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.7 KiB
JavaScript
Raw Normal View History

const QUERY = ['<"P">', '"P" "P"', 'P "P"', '"p" p', '"const": p'];
2021-12-20 10:45:52 -06:00
const PARSED = [
{
args: [],
elemName: null,
elems: [],
foundElems: 0,
id: "<\"P\">",
nameSplit: null,
original: "<\"P\">",
returned: [],
typeFilter: null,
2022-01-03 09:43:30 -06:00
userQuery: "<\"p\">",
2021-12-20 10:45:52 -06:00
error: "`\"` cannot be used in generics",
},
{
args: [],
elemName: null,
elems: [],
foundElems: 0,
id: "\"P\" \"P\"",
nameSplit: null,
original: "\"P\" \"P\"",
returned: [],
typeFilter: null,
2022-01-03 09:43:30 -06:00
userQuery: "\"p\" \"p\"",
2021-12-20 10:45:52 -06:00
error: "Cannot have more than one literal search element",
},
{
args: [],
elemName: null,
elems: [],
foundElems: 0,
id: "P \"P\"",
nameSplit: null,
original: "P \"P\"",
returned: [],
typeFilter: null,
2022-01-03 09:43:30 -06:00
userQuery: "p \"p\"",
2021-12-20 10:45:52 -06:00
error: "Cannot use literal search when there is more than one element",
},
{
args: [],
elemName: null,
elems: [],
foundElems: 0,
id: "\"p\" p",
nameSplit: null,
original: "\"p\" p",
returned: [],
typeFilter: null,
userQuery: "\"p\" p",
error: "You cannot have more than one element if you use quotes",
},
{
args: [],
elemName: null,
elems: [],
foundElems: 0,
id: "\"const\": p",
nameSplit: null,
original: "\"const\": p",
returned: [],
typeFilter: null,
userQuery: "\"const\": p",
error: "You cannot use quotes on type filter",
},
2021-12-20 10:45:52 -06:00
];