]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt
Merge #6585
[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             host: None,
6             port: None,
7             path: "/test/compiler/ty/list_iter.rs",
8             query: None,
9             fragment: None,
10         },
11         diagnostic: Diagnostic {
12             range: Range {
13                 start: Position {
14                     line: 51,
15                     character: 4,
16                 },
17                 end: Position {
18                     line: 51,
19                     character: 47,
20                 },
21             },
22             severity: Some(
23                 Error,
24             ),
25             code: Some(
26                 String(
27                     "E0053",
28                 ),
29             ),
30             code_description: Some(
31                 CodeDescription {
32                     href: Url {
33                         scheme: "https",
34                         host: Some(
35                             Domain(
36                                 "doc.rust-lang.org",
37                             ),
38                         ),
39                         port: None,
40                         path: "/error-index.html",
41                         query: None,
42                         fragment: Some(
43                             "E0053",
44                         ),
45                     },
46                 },
47             ),
48             source: Some(
49                 "rustc",
50             ),
51             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>>`",
52             related_information: None,
53             tags: None,
54             data: None,
55         },
56         fixes: [],
57     },
58 ]