error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:10:18
   |
LL |         unsafe { mem::zeroed() }
   |                  ^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { mem::zeroed::<()>() }
   |                             ++++++

error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:27:13
   |
LL |             core::mem::transmute(Zst)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |             core::mem::transmute::<_, ()>(Zst)
   |                                 +++++++++

error: never type fallback affects this union access
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:44:18
   |
LL |         unsafe { Union { a: () }.b }
   |                  ^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>

error: never type fallback affects this raw pointer dereference
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:55:18
   |
LL |         unsafe { *ptr::from_ref(&()).cast() }
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { *ptr::from_ref(&()).cast::<()>() }
   |                                          ++++++

error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:76:18
   |
LL |         unsafe { internally_create(x) }
   |                  ^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { internally_create::<()>(x) }
   |                                   ++++++

error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:94:18
   |
LL |         unsafe { zeroed() }
   |                  ^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |         let zeroed = mem::zeroed::<()>;
   |                                 ++++++

error: never type fallback affects this `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:89:22
   |
LL |         let zeroed = mem::zeroed;
   |                      ^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |         let zeroed = mem::zeroed::<()>;
   |                                 ++++++

error: never type fallback affects this `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:112:17
   |
LL |         let f = internally_create;
   |                 ^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
help: use `()` annotations to avoid fallback changes
   |
LL |         let f = internally_create::<()>;
   |                                  ++++++

error: never type fallback affects this call to an `unsafe` method
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:137:13
   |
LL |             S(marker::PhantomData).create_out_of_thin_air()
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>

error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:155:19
   |
LL |             match send_message::<_ /* ?0 */>() {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |         msg_send!();
   |         ----------- in this macro invocation
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: the type `!` does not permit zero-initialization
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:10:18
   |
LL |         unsafe { mem::zeroed() }
   |                  ^^^^^^^^^^^^^ this code causes undefined behavior when executed
   |
   = note: the `!` type has no valid value
   = note: `#[warn(invalid_value)]` on by default

error: aborting due to 10 previous errors; 1 warning emitted

Future incompatibility report: Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:10:18
   |
LL |         unsafe { mem::zeroed() }
   |                  ^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { mem::zeroed::<()>() }
   |                             ++++++

Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:27:13
   |
LL |             core::mem::transmute(Zst)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |             core::mem::transmute::<_, ()>(Zst)
   |                                 +++++++++

Future breakage diagnostic:
error: never type fallback affects this union access
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:44:18
   |
LL |         unsafe { Union { a: () }.b }
   |                  ^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default

Future breakage diagnostic:
error: never type fallback affects this raw pointer dereference
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:55:18
   |
LL |         unsafe { *ptr::from_ref(&()).cast() }
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { *ptr::from_ref(&()).cast::<()>() }
   |                                          ++++++

Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:76:18
   |
LL |         unsafe { internally_create(x) }
   |                  ^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         unsafe { internally_create::<()>(x) }
   |                                   ++++++

Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:94:18
   |
LL |         unsafe { zeroed() }
   |                  ^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         let zeroed = mem::zeroed::<()>;
   |                                 ++++++

Future breakage diagnostic:
error: never type fallback affects this `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:89:22
   |
LL |         let zeroed = mem::zeroed;
   |                      ^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         let zeroed = mem::zeroed::<()>;
   |                                 ++++++

Future breakage diagnostic:
error: never type fallback affects this `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:112:17
   |
LL |         let f = internally_create;
   |                 ^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
   |
LL |         let f = internally_create::<()>;
   |                                  ++++++

Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` method
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:137:13
   |
LL |             S(marker::PhantomData).create_out_of_thin_air()
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default

Future breakage diagnostic:
error: never type fallback affects this call to an `unsafe` function
  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:155:19
   |
LL |             match send_message::<_ /* ?0 */>() {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |         msg_send!();
   |         ----------- in this macro invocation
   |
   = help: specify the type explicitly
   = warning: this changes meaning in Rust 2024 and in a future release in all editions!
   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
   = note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)

