summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/qualif_overwrite_2.stderr
blob: 9eb123d0b01b1d3d26c817d7c1d854e05b3c0b72 (plain)
1
2
3
4
5
6
7
8
9
error[E0492]: constants cannot refer to interior mutable data
  --> $DIR/qualif_overwrite_2.rs:8:5
   |
LL |     &{a.0}
   |     ^^^^^^ this borrow of an interior mutable value may end up in the final value

error: aborting due to previous error

For more information about this error, try `rustc --explain E0492`.