2022-06-10 12:14:24 +09:00
|
|
|
warning: variant `Void` is never constructed
|
2019-08-05 19:23:46 -07:00
|
|
|
--> $DIR/derive-uninhabited-enum-38885.rs:13:5
|
2018-11-01 02:57:37 +00:00
|
|
|
|
|
2022-06-10 12:14:24 +09:00
|
|
|
LL | enum Foo {
|
|
|
|
| --- variant in this enum
|
|
|
|
LL | Bar(u8),
|
2019-08-05 19:23:46 -07:00
|
|
|
LL | Void(Void),
|
2022-06-22 20:33:59 +02:00
|
|
|
| ^^^^
|
2018-11-01 02:57:37 +00:00
|
|
|
|
|
2022-06-02 11:13:31 +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`
|
2018-11-01 02:57:37 +00:00
|
|
|
|
2020-03-11 16:30:09 +01:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|