summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/repr-packed-contains-align.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/repr/repr-packed-contains-align.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/repr/repr-packed-contains-align.stderr')
-rw-r--r--src/test/ui/repr/repr-packed-contains-align.stderr139
1 files changed, 139 insertions, 0 deletions
diff --git a/src/test/ui/repr/repr-packed-contains-align.stderr b/src/test/ui/repr/repr-packed-contains-align.stderr
new file mode 100644
index 000000000..4c3a960ca
--- /dev/null
+++ b/src/test/ui/repr/repr-packed-contains-align.stderr
@@ -0,0 +1,139 @@
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:22:1
+ |
+LL | struct SC(SA);
+ | ^^^^^^^^^
+ |
+note: `SA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:5:1
+ |
+LL | struct SA(i32);
+ | ^^^^^^^^^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:25:1
+ |
+LL | struct SD(SB);
+ | ^^^^^^^^^
+ |
+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:25:11
+ |
+LL | struct SD(SB);
+ | ^^
+note: ...which contains a field of type `SA`
+ --> $DIR/repr-packed-contains-align.rs:8:11
+ |
+LL | struct SB(SA);
+ | ^^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:28:1
+ |
+LL | struct SE(UA);
+ | ^^^^^^^^^
+ |
+note: `UA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:12:1
+ |
+LL | union UA {
+ | ^^^^^^^^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:31:1
+ |
+LL | struct SF(UB);
+ | ^^^^^^^^^
+ |
+note: `UA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:12:1
+ |
+LL | union UA {
+ | ^^^^^^^^
+note: `SF` contains a field of type `UB`
+ --> $DIR/repr-packed-contains-align.rs:31:11
+ |
+LL | struct SF(UB);
+ | ^^
+note: ...which contains a field of type `UA`
+ --> $DIR/repr-packed-contains-align.rs:18:5
+ |
+LL | a: UA
+ | ^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:34:1
+ |
+LL | union UC {
+ | ^^^^^^^^
+ |
+note: `UA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:12:1
+ |
+LL | union UA {
+ | ^^^^^^^^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:39:1
+ |
+LL | union UD {
+ | ^^^^^^^^
+ |
+note: `UA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:12:1
+ |
+LL | union UA {
+ | ^^^^^^^^
+note: `UD` contains a field of type `UB`
+ --> $DIR/repr-packed-contains-align.rs:40:5
+ |
+LL | n: UB
+ | ^
+note: ...which contains a field of type `UA`
+ --> $DIR/repr-packed-contains-align.rs:18:5
+ |
+LL | a: UA
+ | ^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:44:1
+ |
+LL | union UE {
+ | ^^^^^^^^
+ |
+note: `SA` has a `#[repr(align)]` attribute
+ --> $DIR/repr-packed-contains-align.rs:5:1
+ |
+LL | struct SA(i32);
+ | ^^^^^^^^^
+
+error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
+ --> $DIR/repr-packed-contains-align.rs:49:1
+ |
+LL | union UF {
+ | ^^^^^^^^
+ |
+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:50:5
+ |
+LL | n: SB
+ | ^
+note: ...which contains a field of type `SA`
+ --> $DIR/repr-packed-contains-align.rs:8:11
+ |
+LL | struct SB(SA);
+ | ^^
+
+error: aborting due to 8 previous errors
+
+For more information about this error, try `rustc --explain E0588`.