2024-05-19 18:51:38 +00:00
|
|
|
warning: this function depends on never type fallback being `()`
|
|
|
|
--> $DIR/dependency-on-fallback-to-unit.rs:8:1
|
|
|
|
|
|
|
|
|
LL | fn def() {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
|
|
|
|
= help: specify the types explicitly
|
2024-06-13 01:42:46 +00:00
|
|
|
note: in edition 2024, the requirement `!: Default` will fail
|
|
|
|
--> $DIR/dependency-on-fallback-to-unit.rs:12:19
|
|
|
|
|
|
|
|
|
LL | false => <_>::default(),
|
|
|
|
| ^
|
2024-05-19 18:51:38 +00:00
|
|
|
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
|
|
|
|
|
|
|
|
warning: this function depends on never type fallback being `()`
|
|
|
|
--> $DIR/dependency-on-fallback-to-unit.rs:19:1
|
|
|
|
|
|
|
|
|
LL | fn question_mark() -> Result<(), ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
|
|
|
|
= help: specify the types explicitly
|
2024-06-13 01:42:46 +00:00
|
|
|
note: in edition 2024, the requirement `!: Default` will fail
|
|
|
|
--> $DIR/dependency-on-fallback-to-unit.rs:22:5
|
|
|
|
|
|
|
|
|
LL | deserialize()?;
|
|
|
|
| ^^^^^^^^^^^^^
|
2024-05-19 18:51:38 +00:00
|
|
|
|
|
|
|
warning: 2 warnings emitted
|
|
|
|
|