rust/tests/ui/consts/const_in_pattern/f16-f128-const-reassign.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
274 B
Rust
Raw Normal View History

//@ check-pass
// issue: rust-lang/rust#122587
#![feature(f128)]
#![feature(f16)]
#![allow(non_upper_case_globals)]
const h: f16 = 0.0f16;
const q: f128 = 0.0f128;
pub fn main() {
let h = 0.0f16 else { unreachable!() };
let q = 0.0f128 else { unreachable!() };
}