aa25f22f19
This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc.
9 lines
168 B
Rust
9 lines
168 B
Rust
// xfail-boot
|
|
fn main() {
|
|
auto f = 4.999999999999;
|
|
assert (f > 4.90);
|
|
assert (f < 5.0);
|
|
auto g = 4.90000000001e-10;
|
|
assert (g > 5e-11);
|
|
assert (g < 5e-9);
|
|
} |