]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js-std/parser-filter.js
Add extended error message for E0523
[rust.git] / tests / rustdoc-js-std / parser-filter.js
1 const QUERY = ['fn:foo', 'enum : foo', 'macro<f>:foo'];
2
3 const PARSED = [
4     {
5         elems: [{
6             name: "foo",
7             fullPath: ["foo"],
8             pathWithoutLast: [],
9             pathLast: "foo",
10             generics: [],
11         }],
12         foundElems: 1,
13         original: "fn:foo",
14         returned: [],
15         typeFilter: 5,
16         userQuery: "fn:foo",
17         error: null,
18     },
19     {
20         elems: [{
21             name: "foo",
22             fullPath: ["foo"],
23             pathWithoutLast: [],
24             pathLast: "foo",
25             generics: [],
26         }],
27         foundElems: 1,
28         original: "enum : foo",
29         returned: [],
30         typeFilter: 4,
31         userQuery: "enum : foo",
32         error: null,
33     },
34     {
35         elems: [],
36         foundElems: 0,
37         original: "macro<f>:foo",
38         returned: [],
39         typeFilter: -1,
40         userQuery: "macro<f>:foo",
41         error: "Unexpected `:`",
42     },
43 ];