rust/tests/ui/consts/const-eval/mod-static-with-const-fn.stderr

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

10 lines
333 B
Plaintext
Raw Normal View History

error[E0080]: could not evaluate static initializer
2024-08-17 12:19:34 +00:00
--> $DIR/mod-static-with-const-fn.rs:14:5
2018-11-24 13:38:31 +00:00
|
LL | *FOO.0.get() = 5;
| ^^^^^^^^^^^^^^^^ modifying a static's initial value from another static's initializer
2018-11-24 13:38:31 +00:00
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.