Update now-more-precise operation with a preciser message
This commit is contained in:
parent
e5330a4f52
commit
a137ff1706
10 changed files with 16 additions and 16 deletions
|
@ -242,8 +242,8 @@ impl NonConstOp for CellBorrow {
|
|||
ccx.tcx.sess,
|
||||
span,
|
||||
E0492,
|
||||
"cannot borrow a constant which may contain \
|
||||
interior mutability, create a static instead"
|
||||
"this borrow to an interior mutable value may end up in the final value of this {}",
|
||||
ccx.const_kind(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue