]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/repr/repr-packed-contains-align.stderr
Shorten def_span for more items.
[rust.git] / src / test / ui / repr / repr-packed-contains-align.stderr
index 32f9bb8bf33d9705ebc2bc018fd4b4d7661e279f..531004e8e202bea3fc26e5de37ee83c8dc83cd09 100644 (file)
@@ -2,25 +2,25 @@ error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:19: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:22: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:22:11
    |
@@ -36,29 +36,25 @@ error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:25:1
    |
 LL | struct SE(UA);
-   | ^^^^^^^^^^^^^^
+   | ^^^^^^^^^
    |
 note: `UA` has a `#[repr(align)]` attribute
   --> $DIR/repr-packed-contains-align.rs:10:1
    |
-LL | / union UA {
-LL | |     i: i32
-LL | | }
-   | |_^
+LL | union UA {
+   | ^^^^^^^^
 
 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:28:1
    |
 LL | struct SF(UB);
-   | ^^^^^^^^^^^^^^
+   | ^^^^^^^^^
    |
 note: `UA` has a `#[repr(align)]` attribute
   --> $DIR/repr-packed-contains-align.rs:10:1
    |
-LL | / union UA {
-LL | |     i: i32
-LL | | }
-   | |_^
+LL | union UA {
+   | ^^^^^^^^
 note: `SF` contains a field of type `UB`
   --> $DIR/repr-packed-contains-align.rs:28:11
    |
@@ -73,34 +69,26 @@ LL |     a: UA
 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:31:1
    |
-LL | / union UC {
-LL | |     a: UA
-LL | | }
-   | |_^
+LL | union UC {
+   | ^^^^^^^^
    |
 note: `UA` has a `#[repr(align)]` attribute
   --> $DIR/repr-packed-contains-align.rs:10:1
    |
-LL | / union UA {
-LL | |     i: i32
-LL | | }
-   | |_^
+LL | union UA {
+   | ^^^^^^^^
 
 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:36:1
    |
-LL | / union UD {
-LL | |     n: UB
-LL | | }
-   | |_^
+LL | union UD {
+   | ^^^^^^^^
    |
 note: `UA` has a `#[repr(align)]` attribute
   --> $DIR/repr-packed-contains-align.rs:10:1
    |
-LL | / union UA {
-LL | |     i: i32
-LL | | }
-   | |_^
+LL | union UA {
+   | ^^^^^^^^
 note: `UD` contains a field of type `UB`
   --> $DIR/repr-packed-contains-align.rs:37:5
    |
@@ -115,30 +103,26 @@ LL |     a: UA
 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> $DIR/repr-packed-contains-align.rs:41:1
    |
-LL | / union UE {
-LL | |     a: SA
-LL | | }
-   | |_^
+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:46:1
    |
-LL | / union UF {
-LL | |     n: SB
-LL | | }
-   | |_^
+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:47:5
    |