cxx 1.0.194

Safe interop between Rust and C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: invalid repr(align) attribute: not a power of two
 --> tests/ui/struct_align.rs:3:18
  |
3 |     #[repr(align(3))]
  |                  ^

error: invalid repr(align) attribute: larger than 2^13
 --> tests/ui/struct_align.rs:9:18
  |
9 |     #[repr(align(1073741824))]
  |                  ^^^^^^^^^^

error: invalid repr(align) attribute: an arithmetic expression is not supported
  --> tests/ui/struct_align.rs:14:18
   |
14 |     #[repr(align(-2))]
   |                  ^^