mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 01:41:05 +00:00
Fix discriminant in test
This commit is contained in:
parent
3cb23a97d6
commit
19f9bdc01f
@ -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))),
|
||||
},
|
||||
]),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user