1error[E0308]: mismatched types 2 --> tests/ui-stable/transmute-mut-src-immutable.rs:17:37 3 | 417 | let _: &mut u8 = transmute_mut!(&0u8); 5 | ---------------^^^^- 6 | | | 7 | | types differ in mutability 8 | expected due to this 9 | 10 = note: expected mutable reference `&mut _` 11 found reference `&u8` 12 13warning: this function depends on never type fallback being `()` 14 --> tests/ui-stable/transmute-mut-src-immutable.rs:15:1 15 | 1615 | fn ref_src_immutable() { 17 | ^^^^^^^^^^^^^^^^^^^^^^ 18 | 19 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! 20 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> 21 = help: specify the types explicitly 22note: in edition 2024, the requirement `!: FromBytes` will fail 23 --> tests/ui-stable/transmute-mut-src-immutable.rs:17:22 24 | 2517 | let _: &mut u8 = transmute_mut!(&0u8); 26 | ^^^^^^^^^^^^^^^^^^^^ 27 = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default 28 = note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 29help: use `()` annotations to avoid fallback changes 30 --> src/macros.rs 31 | 32 | let e: &mut () = $e; 33 | ~~ 34 35warning: never type fallback affects this call to an `unsafe` function 36 --> tests/ui-stable/transmute-mut-src-immutable.rs:17:22 37 | 3817 | let _: &mut u8 = transmute_mut!(&0u8); 39 | ^^^^^^^^^^^^^^^^^^^^ 40 | 41 = warning: this changes meaning in Rust 2024 and in a future release in all editions! 42 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html> 43 = help: specify the type explicitly 44 = note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default 45 = note: this warning originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 46