2024-03-28 21:49:43 -05:00
|
|
|
// This test checks that the core library of Rust can be compiled without enabling
|
|
|
|
// support for formatting and parsing floating-point numbers.
|
|
|
|
|
2024-06-06 11:35:46 -05:00
|
|
|
use run_make_support::{rustc, source_root};
|
2024-03-28 21:49:43 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
rustc()
|
|
|
|
.edition("2021")
|
|
|
|
.arg("-Dwarnings")
|
|
|
|
.crate_type("rlib")
|
2024-06-06 11:35:46 -05:00
|
|
|
.input(source_root().join("library/core/src/lib.rs"))
|
2024-03-28 21:49:43 -05:00
|
|
|
.cfg("no_fp_fmt_parse")
|
|
|
|
.run();
|
|
|
|
}
|