Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9c44b60

Browse files
committedJun 23, 2024·
Change a fixed crash test to a standard test
Fixes <#122587>
1 parent 753f162 commit 9c44b60

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
 

‎tests/crashes/122587-1.rs

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//@ check-pass
2+
// issue: rust-lang/rust#122587
3+
4+
#![feature(f128)]
5+
#![feature(f16)]
6+
#![allow(non_upper_case_globals)]
7+
8+
const h: f16 = 0.0f16;
9+
const q: f128 = 0.0f128;
10+
11+
pub fn main() {
12+
let h = 0.0f16 else { unreachable!() };
13+
let q = 0.0f128 else { unreachable!() };
14+
}

0 commit comments

Comments
 (0)
Please sign in to comment.