Lines Matching +full:run +full:- +full:time
1 // SPDX-License-Identifier: GPL-2.0
3 //! Build-time assert.
16 /// fn foo(a: usize) -> usize {
20 /// assert_eq!(foo(usize::MAX - 1), usize::MAX); // OK.
33 /// Asserts that a boolean expression is `true` at compile time.
48 /// static_assert!(1 > 1); // Compile-time error
49 /// build_assert!(1 > 1); // Build-time error
50 /// assert!(1 > 1); // Run-time error
59 /// build_assert!(N > 1); // Build-time check
60 /// assert!(N > 1); // Run-time check
66 /// build_assert!(n > 1); // Build-time check
67 /// assert!(n > 1); // Run-time check