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 21, 2024
1 parent 1b62868 commit a125259
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/crashes/122587-1.rs

This file was deleted.

13 changes: 13 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,13 @@
//@ check-pass
// issue: rust-lang/rust#122587

#![feature(f128)]
#![feature(f16)]

const h: f16 = 0.0f16;
const q: f128 = 0.0f128;

pub fn main() {
let h = 0.0f16;
let q = 0.0f128;
}

0 comments on commit a125259

Please sign in to comment.