]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt
Update tests
[rust.git] / crates / rust-analyzer / src / diagnostics / test_data / rustc_incompatible_type_for_trait.txt
1 [
2     MappedRustDiagnostic {
3         url: Url {
4             scheme: "file",
5             username: "",
6             password: None,
7             host: None,
8             port: None,
9             path: "/test/compiler/ty/list_iter.rs",
10             query: None,
11             fragment: None,
12         },
13         diagnostic: Diagnostic {
14             range: Range {
15                 start: Position {
16                     line: 51,
17                     character: 4,
18                 },
19                 end: Position {
20                     line: 51,
21                     character: 47,
22                 },
23             },
24             severity: Some(
25                 Error,
26             ),
27             code: Some(
28                 String(
29                     "E0053",
30                 ),
31             ),
32             code_description: Some(
33                 CodeDescription {
34                     href: Url {
35                         scheme: "https",
36                         username: "",
37                         password: None,
38                         host: Some(
39                             Domain(
40                                 "doc.rust-lang.org",
41                             ),
42                         ),
43                         port: None,
44                         path: "/error-index.html",
45                         query: None,
46                         fragment: Some(
47                             "E0053",
48                         ),
49                     },
50                 },
51             ),
52             source: Some(
53                 "rustc",
54             ),
55             message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&ty::Ref<M>>`\n   found type `fn(&ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&\'list ty::Ref<M>>`",
56             related_information: None,
57             tags: None,
58             data: None,
59         },
60         fixes: [],
61     },
62 ]