mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
19 lines
688 B
Plaintext
19 lines
688 B
Plaintext
warning: this function depends on never type fallback being `()`
|
|
--> $DIR/defaulted-never-note.rs:28:1
|
|
|
|
|
LL | fn smeg() {
|
|
| ^^^^^^^^^
|
|
|
|
|
= 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
|
|
note: in edition 2024, the requirement `!: ImplementedForUnitButNotNever` will fail
|
|
--> $DIR/defaulted-never-note.rs:32:9
|
|
|
|
|
LL | foo(_x);
|
|
| ^^
|
|
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|