1error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied 2 --> tests/ui-stable/transmute-ref-src-not-nocell.rs:23:34 3 | 423 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | the trait `zerocopy::Immutable` is not implemented for `Src` 8 | required by a bound introduced by this call 9 | 10 = note: Consider adding `#[derive(Immutable)]` to `Src` 11 = help: the following other types implement trait `zerocopy::Immutable`: 12 &T 13 &mut T 14 () 15 *const T 16 *mut T 17 AU16 18 Box<T> 19 F32<O> 20 and $N others 21note: required by a bound in `AssertSrcIsImmutable` 22 --> tests/ui-stable/transmute-ref-src-not-nocell.rs:23:34 23 | 2423 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable` 26 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 27 28error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied 29 --> tests/ui-stable/transmute-ref-src-not-nocell.rs:23:34 30 | 3123 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `Src` 33 | 34 = note: Consider adding `#[derive(Immutable)]` to `Src` 35 = help: the following other types implement trait `zerocopy::Immutable`: 36 &T 37 &mut T 38 () 39 *const T 40 *mut T 41 AU16 42 Box<T> 43 F32<O> 44 and $N others 45note: required by a bound in `AssertSrcIsImmutable` 46 --> tests/ui-stable/transmute-ref-src-not-nocell.rs:23:34 47 | 4823 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); 49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable` 50 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 51