rust/tests/ui/consts/partial_qualif.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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 09:37:18 +00:00
|
2019-03-09 12:03:44 +00:00
LL | &{a}
| ^^^^ this borrow of an interior mutable value may end up in the final value
2018-11-21 09:37:18 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0492`.