We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7eb3b commit 980a5b0Copy full SHA for 980a5b0
src/librustc_mir/diagnostics.rs
@@ -309,7 +309,7 @@ use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT};
309
310
const A: AtomicUsize = ATOMIC_USIZE_INIT;
311
static B: &'static AtomicUsize = &A;
312
-// error: cannot borrow a constant which may contain interior mutability,
+// error: cannot borrow a constant which may contain interior mutability,
313
// create a static instead
314
```
315
@@ -338,7 +338,7 @@ use std::cell::Cell;
338
339
const A: Cell<usize> = Cell::new(1);
340
const B: &'static Cell<usize> = &A;
341
342
343
344
// or:
0 commit comments