Skip to content

Commit 42fe0b9

Browse files
committed
Fix test for PrefixAllocator::prefix to use the non-generic version
1 parent 0dc2769 commit 42fe0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/alloc/prefix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn test_prefix<T, Prefix>() {
2929
});
3030

3131
assert_eq!(
32-
PrefixAllocator::<System, Prefix>::prefix::<T>(memory.as_non_null_ptr().cast())
32+
PrefixAllocator::<System, Prefix>::prefix(memory.as_non_null_ptr(), layout.align())
3333
.cast()
3434
.as_ptr(),
3535
memory.as_mut_ptr().sub(prefix_offset),

0 commit comments

Comments
 (0)