diff options
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0492.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
