Files
rust/tests/ui/derives/derive-debug-uninhabited-enum.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
486 B
Plaintext
Raw Normal View History

warning: variant `Void` is never constructed
2025-06-08 19:09:38 +05:00
--> $DIR/derive-debug-uninhabited-enum.rs:17:5
|
LL | enum Foo {
| --- variant in this enum
LL | Bar(#[allow(dead_code)] u8),
LL | Void(Void),
2022-06-22 20:33:59 +02:00
| ^^^^
|
= note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
2022-09-18 19:55:36 +04:00
= note: `-W dead-code` implied by `-W unused`
= help: to override `-W unused` add `#[allow(dead_code)]`
warning: 1 warning emitted