|
| 1 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 2 | + --> $DIR/repr-transparent-non-exhaustive.rs:37:22 |
| 3 | + | |
| 4 | +LL | pub struct T5(Sized, Private); |
| 5 | + | ^^^^^^^ |
| 6 | + | |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/repr-transparent-non-exhaustive.rs:1:9 |
| 9 | + | |
| 10 | +LL | #![deny(repr_transparent_external_private_fields)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 13 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 14 | + = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. |
| 15 | + |
| 16 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 17 | + --> $DIR/repr-transparent-non-exhaustive.rs:42:22 |
| 18 | + | |
| 19 | +LL | pub struct T6(Sized, NonExhaustive); |
| 20 | + | ^^^^^^^^^^^^^ |
| 21 | + | |
| 22 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 23 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 24 | + = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 25 | + |
| 26 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 27 | + --> $DIR/repr-transparent-non-exhaustive.rs:47:22 |
| 28 | + | |
| 29 | +LL | pub struct T7(Sized, NonExhaustiveEnum); |
| 30 | + | ^^^^^^^^^^^^^^^^^ |
| 31 | + | |
| 32 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 33 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 34 | + = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 35 | + |
| 36 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 37 | + --> $DIR/repr-transparent-non-exhaustive.rs:52:22 |
| 38 | + | |
| 39 | +LL | pub struct T8(Sized, NonExhaustiveVariant); |
| 40 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 41 | + | |
| 42 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 43 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 44 | + = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 45 | + |
| 46 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 47 | + --> $DIR/repr-transparent-non-exhaustive.rs:57:22 |
| 48 | + | |
| 49 | +LL | pub struct T9(Sized, InternalIndirection<Private>); |
| 50 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 51 | + | |
| 52 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 53 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 54 | + = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. |
| 55 | + |
| 56 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 57 | + --> $DIR/repr-transparent-non-exhaustive.rs:62:23 |
| 58 | + | |
| 59 | +LL | pub struct T10(Sized, InternalIndirection<NonExhaustive>); |
| 60 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 61 | + | |
| 62 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 63 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 64 | + = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 65 | + |
| 66 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 67 | + --> $DIR/repr-transparent-non-exhaustive.rs:67:23 |
| 68 | + | |
| 69 | +LL | pub struct T11(Sized, InternalIndirection<NonExhaustiveEnum>); |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 71 | + | |
| 72 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 73 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 74 | + = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 75 | + |
| 76 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 77 | + --> $DIR/repr-transparent-non-exhaustive.rs:72:23 |
| 78 | + | |
| 79 | +LL | pub struct T12(Sized, InternalIndirection<NonExhaustiveVariant>); |
| 80 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 81 | + | |
| 82 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 83 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 84 | + = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 85 | + |
| 86 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 87 | + --> $DIR/repr-transparent-non-exhaustive.rs:77:23 |
| 88 | + | |
| 89 | +LL | pub struct T13(Sized, ExternalIndirection<Private>); |
| 90 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 91 | + | |
| 92 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 93 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 94 | + = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. |
| 95 | + |
| 96 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 97 | + --> $DIR/repr-transparent-non-exhaustive.rs:82:23 |
| 98 | + | |
| 99 | +LL | pub struct T14(Sized, ExternalIndirection<NonExhaustive>); |
| 100 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 101 | + | |
| 102 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 103 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 104 | + = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 105 | + |
| 106 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 107 | + --> $DIR/repr-transparent-non-exhaustive.rs:87:23 |
| 108 | + | |
| 109 | +LL | pub struct T15(Sized, ExternalIndirection<NonExhaustiveEnum>); |
| 110 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 111 | + | |
| 112 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 113 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 114 | + = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 115 | + |
| 116 | +error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types |
| 117 | + --> $DIR/repr-transparent-non-exhaustive.rs:92:23 |
| 118 | + | |
| 119 | +LL | pub struct T16(Sized, ExternalIndirection<NonExhaustiveVariant>); |
| 120 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 121 | + | |
| 122 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 123 | + = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> |
| 124 | + = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. |
| 125 | + |
| 126 | +error: aborting due to 12 previous errors |
| 127 | + |
0 commit comments