about summary refs log tree commit diff
path: root/tests/ui/consts/const_in_pattern/f16-f128-const-reassign.rs
blob: 99d0e47248576b6e161ee58dd74302045730d7c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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!() };
}