-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-macromacro expansionmacro expansionA-nameresname, path and module resolutionname, path and module resolutionC-bugCategory: bugCategory: bug
Description
This code:
fn main() {
format_args!(
"{}",
match "" {
"" => 1,
_ => panic!(""),
},
);
}
has r-a report the error "expected i32, found ()" (the i32
is the type in the match arm, changing the arm to e.g. ""
changes the error to "expected &str, found ()"):
But it compiles just fine.
Possibly a duplicate of #15082? I don't know what that issue implies
rust-analyzer version: rust-analyzer version: 0.3.1591-standalone
rustc version: rustc 1.73.0-nightly (da6b55cc5 2023-07-17)
relevant settings: nothing particularly worthy of mention I think
Metadata
Metadata
Assignees
Labels
A-macromacro expansionmacro expansionA-nameresname, path and module resolutionname, path and module resolutionC-bugCategory: bugCategory: bug