1error: unsupported on generic structs that are not repr(transparent) or repr(packed) 2 --> tests/ui-stable/struct.rs:55:10 3 | 455 | #[derive(AsBytes)] 5 | ^^^^^^^ 6 | 7 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) 8 9error: cannot derive Unaligned with repr(align(N > 1)) 10 --> tests/ui-stable/struct.rs:80:11 11 | 1280 | #[repr(C, align(2))] 13 | ^^^^^^^^ 14 15error: cannot derive Unaligned with repr(align(N > 1)) 16 --> tests/ui-stable/struct.rs:84:21 17 | 1884 | #[repr(transparent, align(2))] 19 | ^^^^^^^^ 20 21error: cannot derive Unaligned with repr(align(N > 1)) 22 --> tests/ui-stable/struct.rs:90:16 23 | 2490 | #[repr(packed, align(2))] 25 | ^^^^^^^^ 26 27error: cannot derive Unaligned with repr(align(N > 1)) 28 --> tests/ui-stable/struct.rs:94:18 29 | 3094 | #[repr(align(1), align(2))] 31 | ^^^^^^^^ 32 33error: cannot derive Unaligned with repr(align(N > 1)) 34 --> tests/ui-stable/struct.rs:98:8 35 | 3698 | #[repr(align(2), align(4))] 37 | ^^^^^^^^ 38 39error[E0692]: transparent struct cannot have other repr hints 40 --> tests/ui-stable/struct.rs:84:8 41 | 4284 | #[repr(transparent, align(2))] 43 | ^^^^^^^^^^^ ^^^^^^^^ 44 45error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 46 --> tests/ui-stable/struct.rs:31:10 47 | 4831 | #[derive(KnownLayout)] 49 | ^^^^^^^^^^^ doesn't have a size known at compile-time 50 | 51 = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`, which is required by `KL00: Sized` 52note: required because it appears within the type `KL00` 53 --> tests/ui-stable/struct.rs:32:8 54 | 5532 | struct KL00(u8, NotKnownLayoutDst); 56 | ^^^^ 57 = help: see issue #48214 58 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) 59 60error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 61 --> tests/ui-stable/struct.rs:36:10 62 | 6336 | #[derive(KnownLayout)] 64 | ^^^^^^^^^^^ doesn't have a size known at compile-time 65 | 66 = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`, which is required by `KL02: Sized` 67note: required because it appears within the type `KL02` 68 --> tests/ui-stable/struct.rs:37:8 69 | 7037 | struct KL02(u8, [u8]); 71 | ^^^^ 72 = help: see issue #48214 73 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) 74 75error[E0277]: the trait bound `NotKnownLayoutDst: KnownLayout` is not satisfied 76 --> tests/ui-stable/struct.rs:41:10 77 | 7841 | #[derive(KnownLayout)] 79 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst` 80 | 81 = help: the following other types implement trait `KnownLayout`: 82 () 83 *const T 84 *mut T 85 AU16 86 F32<O> 87 F64<O> 88 I128<O> 89 I16<O> 90 and $N others 91 = help: see issue #48214 92 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) 93 94error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied 95 --> tests/ui-stable/struct.rs:47:10 96 | 9747 | #[derive(KnownLayout)] 98 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout` 99 | 100 = help: the following other types implement trait `KnownLayout`: 101 () 102 *const T 103 *mut T 104 AU16 105 F32<O> 106 F64<O> 107 I128<O> 108 I16<O> 109 and $N others 110 = help: see issue #48214 111 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) 112 113error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied 114 --> tests/ui-stable/struct.rs:59:10 115 | 11659 | #[derive(AsBytes)] 117 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>` 118 | 119 = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes2, true>` 120 = help: see issue #48214 121 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) 122 123error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied 124 --> tests/ui-stable/struct.rs:66:10 125 | 12666 | #[derive(AsBytes)] 127 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>` 128 | 129 = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes3, true>` 130 = help: see issue #48214 131 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) 132 133error[E0587]: type has conflicting packed and align representation hints 134 --> tests/ui-stable/struct.rs:91:1 135 | 13691 | struct Unaligned3; 137 | ^^^^^^^^^^^^^^^^^ 138