For example:
const ALIGN_OF_FOO: usize = 32;
#[repr(align(ALIGN_OF_FOO))]
struct Foo;
Currently this produces an error:
error[E0552]: unrecognized representation hint
--> src/main.rs:2:8
|
2 | #[repr(align(ALIGN_OF_FOO))]
| ^^^^^^^^^^^^^^^^^^^
A potential use case is for opaque struct definitions.
I could submit this as a new RFC, but I can't think of any reason not to allow it or any ambiguity as to how it should work, so I'm hoping an issue report may be sufficient.
For example:
Currently this produces an error:
A potential use case is for opaque struct definitions.
I could submit this as a new RFC, but I can't think of any reason not to allow it or any ambiguity as to how it should work, so I'm hoping an issue report may be sufficient.