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