]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt
Fix tests
[rust.git] / crates / rust-analyzer / src / diagnostics / test_data / rustc_mismatched_type.txt
1 [
2     MappedRustDiagnostic {
3         url: Url {
4             scheme: "file",
5             cannot_be_a_base: false,
6             username: "",
7             password: None,
8             host: None,
9             port: None,
10             path: "/test/runtime/compiler_support.rs",
11             query: None,
12             fragment: None,
13         },
14         diagnostic: Diagnostic {
15             range: Range {
16                 start: Position {
17                     line: 47,
18                     character: 64,
19                 },
20                 end: Position {
21                     line: 47,
22                     character: 69,
23                 },
24             },
25             severity: Some(
26                 DiagnosticSeverity(
27                     1,
28                 ),
29             ),
30             code: Some(
31                 String(
32                     "E0308",
33                 ),
34             ),
35             code_description: Some(
36                 CodeDescription {
37                     href: Url {
38                         scheme: "https",
39                         cannot_be_a_base: false,
40                         username: "",
41                         password: None,
42                         host: Some(
43                             Domain(
44                                 "doc.rust-lang.org",
45                             ),
46                         ),
47                         port: None,
48                         path: "/error-index.html",
49                         query: None,
50                         fragment: Some(
51                             "E0308",
52                         ),
53                     },
54                 },
55             ),
56             source: Some(
57                 "rustc",
58             ),
59             message: "mismatched types\nexpected usize, found u32",
60             related_information: None,
61             tags: None,
62             data: None,
63         },
64         fixes: [],
65     },
66 ]