rust/tests/ui/consts/partial_qualif.stderr

10 lines
307 B
Plaintext
Raw Normal View History

error[E0492]: constants cannot refer to interior mutable data
--> $DIR/partial_qualif.rs:6:5
2018-11-21 03:37:18 -06:00
|
2019-03-09 06:03:44 -06:00
LL | &{a}
| ^^^^ this borrow of an interior mutable value may end up in the final value
2018-11-21 03:37:18 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0492`.