From f4fc150c45d915426f05739a6b77859983c4f412 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 14 Sep 2021 12:49:17 -0700 Subject: [PATCH] Fix dead code warning in issue 795 regression test warning: field is never read: `x` --> tests/regression/issue795.rs:9:15 | 9 | Variant { x: u8 }, | ^^^^^ | = note: `#[warn(dead_code)]` on by default --- tests/regression/issue795.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/issue795.rs b/tests/regression/issue795.rs index 43198a33d..06b68724e 100644 --- a/tests/regression/issue795.rs +++ b/tests/regression/issue795.rs @@ -5,7 +5,7 @@ use serde_json::json; use std::fmt; #[derive(Debug)] -enum Enum { +pub enum Enum { Variant { x: u8 }, }