]> git.proxmox.com Git - rustc.git/blob - src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt
New upstream version 1.64.0+dfsg1
[rustc.git] / src / tools / rust-analyzer / crates / rust-analyzer / src / diagnostics / test_data / rustc_incompatible_type_for_trait.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/compiler/ty/list_iter.rs",
11 query: None,
12 fragment: None,
13 },
14 diagnostic: Diagnostic {
15 range: Range {
16 start: Position {
17 line: 51,
18 character: 4,
19 },
20 end: Position {
21 line: 51,
22 character: 47,
23 },
24 },
25 severity: Some(
26 Error,
27 ),
28 code: Some(
29 String(
30 "E0053",
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 "E0053",
50 ),
51 },
52 },
53 ),
54 source: Some(
55 "rustc",
56 ),
57 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>>`",
58 related_information: None,
59 tags: None,
60 data: None,
61 },
62 fix: None,
63 },
64 ]