Closed
Description
Code:
const C: *const str = "abcd";
fn main() {
match C {
C => {}
_ => {}
}
}
Diagnostics:
warning: broken MIR (Terminator { source_info: SourceInfo { span: <anon>:5:9: 5:10, scope: scope0 }, kind: tmp1 = <str as std::cmp::PartialEq>::eq(tmp0, const "abcd") -> bb3 }): bad arg #0 (&str <- *const str): Sorts(ExpectedFound { expected: &str, found: *const str })
--> <anon>:4:11
|>
4 |> match C {
|> ^
Reproduces on stable/beta/nightly.