2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:22:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct SC(SA);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `SA` has a `#[repr(align)]` attribute
|
|
|
|
--> $DIR/repr-packed-contains-align.rs:5:1
|
|
|
|
|
|
|
|
|
LL | struct SA(i32);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:25:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct SD(SB);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `SA` has a `#[repr(align)]` attribute
|
|
|
|
--> $DIR/repr-packed-contains-align.rs:5:1
|
|
|
|
|
|
|
|
|
LL | struct SA(i32);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
note: `SD` contains a field of type `SB`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:25:11
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | struct SD(SB);
|
|
|
|
| ^^
|
|
|
|
note: ...which contains a field of type `SA`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:8:11
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | struct SB(SA);
|
|
|
|
| ^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:28:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct SE(UA);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `UA` has a `#[repr(align)]` attribute
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:12:1
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UA {
|
|
|
|
| ^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:31:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct SF(UB);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `UA` has a `#[repr(align)]` attribute
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:12:1
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UA {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
note: `SF` contains a field of type `UB`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:31:11
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | struct SF(UB);
|
|
|
|
| ^^
|
|
|
|
note: ...which contains a field of type `UA`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:18:5
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | a: UA
|
|
|
|
| ^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:34:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UC {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `UA` has a `#[repr(align)]` attribute
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:12:1
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UA {
|
|
|
|
| ^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:39:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UD {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `UA` has a `#[repr(align)]` attribute
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:12:1
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UA {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
note: `UD` contains a field of type `UB`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:40:5
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | n: UB
|
|
|
|
| ^
|
|
|
|
note: ...which contains a field of type `UA`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:18:5
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | a: UA
|
|
|
|
| ^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:44:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UE {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `SA` has a `#[repr(align)]` attribute
|
|
|
|
--> $DIR/repr-packed-contains-align.rs:5:1
|
|
|
|
|
|
|
|
|
LL | struct SA(i32);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-06 18:00:16 -06:00
|
|
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:49:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | union UF {
|
|
|
|
| ^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
note: `SA` has a `#[repr(align)]` attribute
|
|
|
|
--> $DIR/repr-packed-contains-align.rs:5:1
|
|
|
|
|
|
|
|
|
LL | struct SA(i32);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^
|
2020-01-06 18:00:16 -06:00
|
|
|
note: `UF` contains a field of type `SB`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:50:5
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | n: SB
|
|
|
|
| ^
|
|
|
|
note: ...which contains a field of type `SA`
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/repr-packed-contains-align.rs:8:11
|
2020-01-06 18:00:16 -06:00
|
|
|
|
|
|
|
|
LL | struct SB(SA);
|
|
|
|
| ^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
2019-10-19 04:22:17 -05:00
|
|
|
For more information about this error, try `rustc --explain E0588`.
|