Avoid dead code warning on void enum in test

This commit is contained in:
David Tolnay 2019-10-12 14:10:41 -07:00
parent a34af0d6a6
commit 99f035e1b8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ struct NestedShorthand(bool);
#[derive(Error, Debug)]
#[error("...")]
enum Void {}
pub enum Void {}
fn not(bool: &bool) -> bool {
!*bool