We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2287b4b commit 3f9fc39Copy full SHA for 3f9fc39
src/librustc_typeck/astconv.rs
@@ -1550,7 +1550,7 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
1550
ast::TyParen(ref typ) => ast_ty_to_ty(this, rscope, &**typ),
1551
ast::TyBareFn(ref bf) => {
1552
if bf.decl.variadic && bf.abi != abi::C {
1553
- span_err!(tcx.sess, ast_ty.span, E0222,
+ span_err!(tcx.sess, ast_ty.span, E0045,
1554
"variadic function must have C calling convention");
1555
}
1556
let bare_fn = ty_of_bare_fn(this, bf.unsafety, bf.abi, &*bf.decl);
0 commit comments