mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
10 lines
262 B
Rust
10 lines
262 B
Rust
//@ known-bug: #131762
|
|
// ignore-tidy-linelength
|
|
|
|
#![feature(generic_assert)]
|
|
struct FloatWrapper(f64);
|
|
|
|
fn main() {
|
|
assert!((0.0 / 0.0 >= 0.0) == (FloatWrapper(0.0 / 0.0) >= FloatWrapper(size_of::<u8>, size_of::<u16>, size_of::<usize> as fn() -> usize)))
|
|
}
|