Lines Matching +full:run +full:- +full:time
1 // SPDX-License-Identifier: GPL-2.0
3 //! Build-time assert.
18 /// fn foo(a: usize) -> usize {
22 /// assert_eq!(foo(usize::MAX - 1), usize::MAX); // OK.
35 /// Asserts that a boolean expression is `true` at compile time.
50 /// static_assert!(1 > 1); // Compile-time error
51 /// build_assert!(1 > 1); // Build-time error
52 /// assert!(1 > 1); // Run-time error
61 /// build_assert!(N > 1); // Build-time check
62 /// assert!(N > 1); // Run-time check
68 /// build_assert!(n > 1); // Build-time check
69 /// assert!(n > 1); // Run-time check