rust/tests/ui/repr/repr-packed-contains-align.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

140 lines
3.4 KiB
Plaintext
Raw Normal View History

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
| ^^^^^^^^^
|
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
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
| ^^^^^^^^^
|
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
| ^^^^^^^^^
note: `SD` contains a field of type `SB`
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:25:11
|
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
|
LL | struct SB(SA);
| ^^
2018-08-08 07:28:26 -05: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
| ^^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:12:1
|
2022-02-13 09:27:59 -06:00
LL | union UA {
| ^^^^^^^^
2018-08-08 07:28:26 -05: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
| ^^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:12:1
|
2022-02-13 09:27:59 -06:00
LL | union UA {
| ^^^^^^^^
note: `SF` contains a field of type `UB`
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:31:11
|
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
|
LL | a: UA
| ^
2018-08-08 07:28:26 -05: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 {
| ^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:12:1
|
2022-02-13 09:27:59 -06:00
LL | union UA {
| ^^^^^^^^
2018-08-08 07:28:26 -05: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 {
| ^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:12:1
|
2022-02-13 09:27:59 -06:00
LL | union UA {
| ^^^^^^^^
note: `UD` contains a field of type `UB`
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:40:5
|
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
|
LL | a: UA
| ^
2018-08-08 07:28:26 -05: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 {
| ^^^^^^^^
|
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
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 {
| ^^^^^^^^
|
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
| ^^^^^^^^^
note: `UF` contains a field of type `SB`
2022-06-29 21:33:18 -05:00
--> $DIR/repr-packed-contains-align.rs:50:5
|
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
|
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`.