Content-Length: 24336 | pFad | https://doc.rust-lang.org/std/string/../../../../std/vec/../../error_codes/./E0552.html

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

A unrecognized representation attribute was used.

Erroneous code example:

#![allow(unused)]
fn main() {
#[repr(D)] // error: unrecognized representation hint
struct MyStruct {
    my_field: usize
}
}

You can use a repr attribute to tell the compiler how you want a struct or enum to be laid out in memory.

Make sure you’re using one of the supported options:

#![allow(unused)]
fn main() {
#[repr(C)] // ok!
struct MyStruct {
    my_field: usize
}
}

For more information about specifying representations, see the “Alternative Representations” section of the Rustonomicon.









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/../../../../std/vec/../../error_codes/./E0552.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy