Remove E0019, use E0015 for inline assembly in a const
This commit is contained in:
parent
0c26144b1a
commit
1301f43119
5 changed files with 6 additions and 44 deletions
|
@ -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()
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue