Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
// run-pass
const unsafe fn foo(x: bool) -> bool {
match x {
true => true,
false => std::hint::unreachable_unchecked(),
}
const BAR: bool = unsafe { foo(true) };
fn main() {
assert_eq!(BAR, true);