]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt
05074a914b53c0ccc79f3f0722ba4ffae3289add
[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                 Error,
27             ),
28             code: Some(
29                 String(
30                     "E0308",
31                 ),
32             ),
33             code_description: Some(
34                 CodeDescription {
35                     href: Url {
36                         scheme: "https",
37                         cannot_be_a_base: false,
38                         username: "",
39                         password: None,
40                         host: Some(
41                             Domain(
42                                 "doc.rust-lang.org",
43                             ),
44                         ),
45                         port: None,
46                         path: "/error-index.html",
47                         query: None,
48                         fragment: Some(
49                             "E0308",
50                         ),
51                     },
52                 },
53             ),
54             source: Some(
55                 "rustc",
56             ),
57             message: "mismatched types\nexpected usize, found u32",
58             related_information: None,
59             tags: None,
60             data: None,
61         },
62         fixes: [],
63     },
64 ]