Searched refs:AllocError (Results 1 – 4 of 4) sorted by relevance
20 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, core::alloc::AllocError> { in allocate() argument23 Err(_) => Err(core::alloc::AllocError), in allocate()
107 Fallibility::Fallible => TryReserveError::AllocError { layout }, in alloc_err()
125 AllocError { enumerator
4641 if let Err(AllocError { .. }) = empty_bytes.try_reserve(MAX_USIZE / 8) { in test_try_reserve()4646 if let Err(AllocError { .. }) = empty_bytes2.try_reserve(MAX_USIZE / 8) { in test_try_reserve()