rust/crates/rust-analyzer/test_data/rustc_wrong_number_of_parameters.txt

52 lines
1.6 KiB
Plaintext
Raw Normal View History

[
MappedRustDiagnostic {
2020-07-09 08:35:52 -05:00
url: "file:///test/compiler/ty/select.rs",
diagnostic: Diagnostic {
range: Range {
start: Position {
line: 103,
character: 17,
},
end: Position {
line: 103,
character: 29,
},
2019-12-25 10:31:49 -06:00
},
severity: Some(
Error,
2019-12-25 10:31:49 -06:00
),
code: Some(
String(
"E0061",
),
),
source: Some(
"rustc",
),
message: "this function takes 2 parameters but 3 parameters were supplied\nexpected 2 parameters",
related_information: Some(
[
DiagnosticRelatedInformation {
location: Location {
uri: "file:///test/compiler/ty/select.rs",
range: Range {
start: Position {
line: 218,
character: 4,
},
end: Position {
line: 230,
character: 5,
},
2019-12-25 10:31:49 -06:00
},
},
message: "defined here",
2019-12-25 10:31:49 -06:00
},
],
),
tags: None,
},
fixes: [],
2019-12-25 10:31:49 -06:00
},
]