don't match on floating-point literal
This commit is contained in:
parent
9e44509e51
commit
ecf452ce3a
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ fn c() {
|
|||
unsafe {
|
||||
match v {
|
||||
Value { tag: Tag::I, u: U { i: 0 } } => true,
|
||||
Value { tag: Tag::F, u: U { f: 0.0 } } => true,
|
||||
Value { tag: Tag::F, u: U { f } } if f == 0.0 => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue