未验证 提交 06a75e4d 编写于 作者: M Michael Howell 提交者: GitHub

Update parser.rs

上级 a0628ef3
......@@ -5891,7 +5891,7 @@ fn parse_enum_def(&mut self, _generics: &ast::Generics) -> PResult<'a, EnumDef>
match any_disr {
Some(disr_span) if !all_nullary =>
self.span_err(disr_span,
"discriminator values can only be used with a c-like enum"),
"discriminator values can only be used with a field-less enum"),
_ => ()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册