summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0492.stderr
blob: c19896623128f43df890e1ed7feb0fe06675bd66 (plain)
1
2
3
4
5
6
7
8
error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
  --> $DIR/E0492.rs:14:34
   |
14 | static B: &'static AtomicUsize = &A; //~ ERROR E0492
   |                                  ^^

error: aborting due to previous error