diff --git a/tests/test_macro_input.rs b/tests/test_macro_input.rs index 1e8b780f..1c25a999 100644 --- a/tests/test_macro_input.rs +++ b/tests/test_macro_input.rs @@ -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))), }, ]), };