Skip to content

Commit

Permalink
Change a fixed crash test to a standard test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jun 23, 2024
1 parent 753f162 commit 9c44b60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/crashes/122587-1.rs

This file was deleted.

14 changes: 14 additions & 0 deletions tests/ui/consts/const_in_pattern/f16-f128-const-reassign.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,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!() };
}

0 comments on commit 9c44b60

Please sign in to comment.