1
Fork 0

Update now-more-precise operation with a preciser message

This commit is contained in:
oli 2021-01-03 13:45:16 +00:00
parent e5330a4f52
commit a137ff1706
10 changed files with 16 additions and 16 deletions

View file

@ -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(),
)
}
}