Content-Length: 12593 | pFad | https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/./E0565.html

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

A literal was used in a built-in attribute that doesn't support literals.

Erroneous code example:

#[repr("C")] // error: meta item in `repr` must be an identifier
struct Repr {}

fn main() {}

Not all attributes support literals in their input, and in some cases they expect an identifier instead. That would be the solution in the case of repr:

#[repr(C)] // ok!
struct Repr {}

fn main() {}








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/pin/../default/../rc/../../../std/../error_codes/./E0565.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy