2022-06-10 03:14:24 +00:00
|
|
|
warning: variant `Void` is never constructed
|
2019-08-06 02:23:46 +00:00
|
|
|
--> $DIR/derive-uninhabited-enum-38885.rs:13:5
|
2018-11-01 02:57:37 +00:00
|
|
|
|
|
2022-06-10 03:14:24 +00:00
|
|
|
LL | enum Foo {
|
|
|
|
| --- variant in this enum
|
2023-12-27 22:11:58 +00:00
|
|
|
LL | Bar(#[allow(dead_code)] u8),
|
2019-08-06 02:23:46 +00:00
|
|
|
LL | Void(Void),
|
2022-06-22 18:33:59 +00:00
|
|
|
| ^^^^
|
2018-11-01 02:57:37 +00:00
|
|
|
|
|
2022-06-02 09:13:31 +00:00
|
|
|
= note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
2022-09-18 15:55:36 +00:00
|
|
|
= note: `-W dead-code` implied by `-W unused`
|
2023-07-25 17:40:04 +00:00
|
|
|
= help: to override `-W unused` add `#[allow(dead_code)]`
|
2018-11-01 02:57:37 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|