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