Fix discriminant in test

This commit is contained in:
David Tolnay 2016-10-07 23:07:01 -07:00
parent 3cb23a97d6
commit 19f9bdc01f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -153,10 +153,7 @@ fn test_enum() {
ident: "Surprise".into(),
attrs: Vec::new(),
data: VariantData::Unit,
discriminant: Some(Discriminant {
value: 0,
ty: IntTy::Isize,
}),
discriminant: Some(ConstExpr::Lit(Lit::Int(0, IntTy::Isize))),
},
]),
};