Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/multitude/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ impl AllocError {
/// succeed, regardless of how much memory is available.
///
/// ```
/// # fn main() {
/// # #[cfg(not(utc_backend))] {
/// #[repr(align(32768))]
/// struct OverAligned;
///
Expand All @@ -103,6 +105,8 @@ impl AllocError {
/// panic!("over-aligned values must be rejected");
/// };
/// assert!(error.is_alignment_too_large());
/// # }
/// # }
/// ```
#[must_use]
pub fn is_alignment_too_large(self) -> bool {
Expand Down
Loading