mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
Create new error E0743
This commit is contained in:
@@ -197,8 +197,11 @@ pub(super) fn parse_ty_common(&mut self, allow_plus: bool, allow_qpath_recovery:
|
||||
self.eat(&token::DotDotDot);
|
||||
TyKind::CVarArgs
|
||||
} else {
|
||||
return Err(self.fatal(
|
||||
"only foreign functions are allowed to be C-variadic"
|
||||
return Err(struct_span_fatal!(
|
||||
self.sess.span_diagnostic,
|
||||
self.token.span,
|
||||
E0743,
|
||||
"only foreign functions are allowed to be C-variadic",
|
||||
));
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user