Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
deriving
/
issue-103157.rs
blob: ca06989787813f77972c370774feb342cb2c0154 [
file
] [
log
] [
blame
]
//@ check-fail
#[
derive
(
PartialEq
,
Eq
)]
pub
enum
Value
{
Boolean
(
Option
<
bool
>),
Float
(
Option
<
f64
>),
//~ ERROR the trait bound `f64: Eq` is not satisfied
}
fn
main
()
{
let
a
=
Value
::
Float
(
Some
(
f64
::
NAN
));
assert
!(
a
==
a
);
}