1error[E0308]: mismatched types 2 --> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:54 3 | 417 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); 5 | ---------------^^^^^^- 6 | | | 7 | | expected `&_`, found `usize` 8 | expected due to this 9 | 10 = note: expected reference `&_` 11 found type `usize` 12help: consider borrowing here 13 | 1417 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(&0usize); 15 | + 16 17error[E0308]: mismatched types 18 --> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:39 19 | 2017 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); 21 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 22 | 23 = note: expected type `usize` 24 found reference `&_` 25 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 26 27error[E0308]: mismatched types 28 --> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:39 29 | 3017 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); 31 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 32 | 33 = note: expected type `usize` 34 found reference `&_` 35 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 36 37error[E0308]: mismatched types 38 --> tests/ui-stable/transmute-ref-src-dst-not-references.rs:17:39 39 | 4017 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize); 41 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 42 | 43 = note: expected type `usize` 44 found reference `&_` 45 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 46