forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change a fixed crash test to a standard test
Fixes <rust-lang#122587>
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
tests/ui/consts/const_in_pattern/f16-f128-const-reassign.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |