]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0492.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0492.stderr
1 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
2   --> $DIR/E0492.rs:4:34
3    |
4 LL | static B: &'static AtomicUsize = &A;
5    |                                  ^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0492`.