From a137ff17069feb67a2ef5a0f3ddbe09707c2d6cd Mon Sep 17 00:00:00 2001 From: oli Date: Sun, 3 Jan 2021 13:45:16 +0000 Subject: Update now-more-precise operation with a preciser message --- src/test/ui/error-codes/E0492.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/ui/error-codes') diff --git a/src/test/ui/error-codes/E0492.stderr b/src/test/ui/error-codes/E0492.stderr index 54306433b87..9aa84c2bff3 100644 --- a/src/test/ui/error-codes/E0492.stderr +++ b/src/test/ui/error-codes/E0492.stderr @@ -1,10 +1,10 @@ -error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead +error[E0492]: this borrow to an interior mutable value may end up in the final value of this constant --> $DIR/E0492.rs:4:33 | LL | const B: &'static AtomicUsize = &A; | ^^ -error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead +error[E0492]: this borrow to an interior mutable value may end up in the final value of this static --> $DIR/E0492.rs:5:34 | LL | static C: &'static AtomicUsize = &A; -- cgit 1.4.1-3-g733a5