diff --git a/agb/src/agb_alloc/bump_allocator.rs b/agb/src/agb_alloc/bump_allocator.rs index ab68757a..51526dbd 100644 --- a/agb/src/agb_alloc/bump_allocator.rs +++ b/agb/src/agb_alloc/bump_allocator.rs @@ -72,6 +72,7 @@ fn alloc_error(layout: Layout) -> ! { #[cfg(test)] mod test { + use super::*; use alloc::boxed::Box; #[test_case] @@ -85,7 +86,7 @@ mod test { let address = &*first_box as *const _ as usize; assert!( - address >= super::EWRAM_START && address < super::EWRAM_END, + address >= EWRAM_START && address < EWRAM_END, "ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}", address );