1error[E0308]: mismatched types 2 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 3 | 417 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 5 | ^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 6 | 7 = note: expected type `usize` 8 found reference `&_` 9 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 10 11error[E0308]: mismatched types 12 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 13 | 1417 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 15 | ^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 16 | 17 = note: expected type `usize` 18 found reference `&_` 19 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 20 21error[E0308]: mismatched types 22 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 23 | 2417 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 25 | ^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 26 | 27 = note: expected type `usize` 28 found reference `&_` 29 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 30 31error[E0308]: mismatched types 32 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 33 | 3417 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 35 | ^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_` 36 | 37 = note: expected type `usize` 38 found reference `&_` 39 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 40 41error[E0308]: mismatched types 42 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 43 | 4417 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 45 | ^^^^^^^^^^^^^^^^^^^^ 46 | | 47 | expected `usize`, found `&_` 48 | arguments to this function are incorrect 49 | 50 = note: expected type `usize` 51 found reference `&_` 52help: the return type of this call is `&_` due to the type of the argument passed 53 --> tests/ui-nightly/transmute-ref-dst-not-a-reference.rs:17:36 54 | 5517 | const DST_NOT_A_REFERENCE: usize = transmute_ref!(&0u8); 56 | ^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `$crate` 57note: function defined here 58 --> src/util/macro_util.rs 59 | 60 | pub const fn must_use<T>(t: T) -> T { 61 | ^^^^^^^^ 62 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 63