#![allow(missing_docs, reason = "may be removed in the future")] #![allow(
clippy::missing_const_for_fn,
clippy::std_instead_of_core,
clippy::std_instead_of_alloc,
clippy::alloc_instead_of_core,
reason = "irrelevant for tests"
)]
// Intentionally unreachable. This is to show the user a warning when they don't provide // `--all-features`. "Tests must be run with `--all-features`. Because the flag was not provided, `cargo test \
--all-features` is run.";
}
require_all_features! { /// Assert that the given expression panics.
macro_rules! assert_panic {
($($x:tt)*) => {
assert!(std::panic::catch_unwind(|| {
$($x)*
})
.is_err())
}
}
/// `assert_eq!` or `assert_ne!` depending on the value of `$is_eq`. /// /// This provides better diagnostics than `assert_eq!($left == $right, $is_eq)`.
macro_rules! assert_eq_ne {
($left:expr, $right:expr, $is_eq:expr $(, $($rest:tt)*)?) => {{ if $is_eq {
assert_eq!($left, $right $(, $($rest)*)?);
} else {
assert_ne!($left, $right $(, $($rest)*)?);
}
}}
}
mod convert; mod date; mod derives; mod duration; mod error; mod ext; mod format_description; mod formatting; mod instant; mod macros; mod meta; mod month; mod offset_date_time; mod parse_format_description; mod parsed; mod parsing; mod primitive_date_time; #[path = "quickcheck.rs"] mod quickcheck_mod; mod rand; mod serde; mod serde_helpers; mod time; mod utc_date_time; mod utc_offset; mod util; mod weekday;
#[cfg(__ui_tests)] #[test]
fn compile_fail() { let tests = trybuild::TestCases::new(); // Path is relative from `time/Cargo.toml`.
tests.compile_fail("./tests/integration/compile-fail/*.rs");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.