os-rust/src/test/ui/repr/repr-packed-contains-align.stderr

156 lines
3.6 KiB
Text
Raw Normal View History

error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:19:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | struct SC(SA);
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^
|
note: `SA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:5:1
|
LL | struct SA(i32);
| ^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:22:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | struct SD(SB);
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^
|
note: `SA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:5:1
|
LL | struct SA(i32);
| ^^^^^^^^^^^^^^^
note: `SD` contains a field of type `SB`
--> $DIR/repr-packed-contains-align.rs:22:11
|
LL | struct SD(SB);
| ^^
note: ...which contains a field of type `SA`
--> $DIR/repr-packed-contains-align.rs:7:11
|
LL | struct SB(SA);
| ^^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:25:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | struct SE(UA);
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:10:1
|
LL | / union UA {
LL | | i: i32
LL | | }
| |_^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:28:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | struct SF(UB);
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^
|
note: `UA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:10:1
|
LL | / union UA {
LL | | i: i32
LL | | }
| |_^
note: `SF` contains a field of type `UB`
--> $DIR/repr-packed-contains-align.rs:28:11
|
LL | struct SF(UB);
| ^^
note: ...which contains a field of type `UA`
--> $DIR/repr-packed-contains-align.rs:15:5
|
LL | a: UA
| ^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:31:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / union UC {
2018-08-08 14:28:26 +02:00
LL | | a: UA
LL | | }
| |_^
|
note: `UA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:10:1
|
LL | / union UA {
LL | | i: i32
2018-08-08 14:28:26 +02:00
LL | | }
| |_^
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:36:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / union UD {
2018-08-08 14:28:26 +02:00
LL | | n: UB
LL | | }
| |_^
|
note: `UA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:10:1
|
LL | / union UA {
LL | | i: i32
LL | | }
| |_^
note: `UD` contains a field of type `UB`
--> $DIR/repr-packed-contains-align.rs:37:5
|
LL | n: UB
| ^
note: ...which contains a field of type `UA`
--> $DIR/repr-packed-contains-align.rs:15:5
|
LL | a: UA
| ^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:41:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / union UE {
2018-08-08 14:28:26 +02:00
LL | | a: SA
LL | | }
| |_^
|
note: `SA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:5:1
|
LL | struct SA(i32);
| ^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2018-12-25 08:56:47 -07:00
--> $DIR/repr-packed-contains-align.rs:46:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / union UF {
2018-08-08 14:28:26 +02:00
LL | | n: SB
LL | | }
| |_^
|
note: `SA` has a `#[repr(align)]` attribute
--> $DIR/repr-packed-contains-align.rs:5:1
|
LL | struct SA(i32);
| ^^^^^^^^^^^^^^^
note: `UF` contains a field of type `SB`
--> $DIR/repr-packed-contains-align.rs:47:5
|
LL | n: SB
| ^
note: ...which contains a field of type `SA`
--> $DIR/repr-packed-contains-align.rs:7:11
|
LL | struct SB(SA);
| ^^
2018-08-08 14:28:26 +02:00
error: aborting due to 8 previous errors
2019-10-19 11:22:17 +02:00
For more information about this error, try `rustc --explain E0588`.