]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive-uninhabited-enum-38885.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / derive-uninhabited-enum-38885.stderr
1 warning: variant `Void` is never constructed
2   --> $DIR/derive-uninhabited-enum-38885.rs:13:5
3    |
4 LL | enum Foo {
5    |      --- variant in this enum
6 LL |     Bar(u8),
7 LL |     Void(Void),
8    |     ^^^^
9    |
10    = note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
11    = note: `-W dead-code` implied by `-W unused`
12
13 warning: 1 warning emitted
14