Content-Length: 24097 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../vec/../../../error_codes/./E0634.html

E0634 - 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 E0634

A type has conflicting packed representation hints.

Erroneous code examples:

#![allow(unused)]
fn main() {
#[repr(packed, packed(2))] // error!
struct Company(i32);

#[repr(packed(2))] // error!
#[repr(packed)]
struct Company(i32);
}

You cannot use conflicting packed 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)] // ok!
struct Company(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/../vec/../../../error_codes/./E0634.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy