Content-Length: 24063 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../thread/../../../error_codes/./E0587.html

E0587 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0587

A type has both packed and align representation hints.

Erroneous code example:

#![allow(unused)]
fn main() {
#[repr(packed, align(8))] // error!
struct Umbrella(i32);
}

You cannot use packed and align hints on a same type. If you want to pack a type to a given size, you should provide a size to packed:

#![allow(unused)]
fn main() {
#[repr(packed(8))] // ok!
struct Umbrella(i32);
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../thread/../../../error_codes/./E0587.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy