Remove E0019, use E0015 for inline assembly in a const

This commit is contained in:
Dylan MacKenzie 2020-09-30 09:58:01 -07:00
parent 0c26144b1a
commit 1301f43119
5 changed files with 6 additions and 44 deletions

View file

@ -193,8 +193,8 @@ impl NonConstOp for InlineAsm {
struct_span_err!(
ccx.tcx.sess,
span,
E0019,
"{} contains unimplemented expression type",
E0015,
"inline assembly is not allowed in {}s",
ccx.const_kind()
)
}