ref-cast 1.0.25

Safely cast &T to &U where the struct U contains a single field of type T.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: aligned repr on struct that implements RefCast is not supported
 --> tests/ui/repr-align.rs:4:8
  |
4 | #[repr(align(2), C, align = "2")]
  |        ^^^^^^^^

error: aligned repr on struct that implements RefCast is not supported
 --> tests/ui/repr-align.rs:4:21
  |
4 | #[repr(align(2), C, align = "2")]
  |                     ^^^^^^^^^^^

error[E0693]: incorrect `repr(align)` attribute format
 --> tests/ui/repr-align.rs:4:21
  |
4 | #[repr(align(2), C, align = "2")]
  |                     ^^^^^^^^^^^ help: use parentheses instead: `align(2)`