We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29932db commit 7a7144fCopy full SHA for 7a7144f
library/core/tests/intrinsics.rs
@@ -83,7 +83,16 @@ fn test_hints_in_const_contexts() {
83
84
#[cfg(not(bootstrap))]
85
#[test]
86
-fn test_const_dealocate_at_runtime() {
+fn test_const_allocate_at_runtime() {
87
+ use core::intrinsics::const_allocate;
88
+ unsafe {
89
+ assert!(const_allocate(4, 4).is_null());
90
+ }
91
+}
92
+
93
+#[cfg(not(bootstrap))]
94
+#[test]
95
+fn test_const_deallocate_at_runtime() {
96
use core::intrinsics::const_deallocate;
97
const X: &u32 = &42u32;
98
let x = &0u32;
0 commit comments