rust/src/test/ui/consts/const-eval/assign-to-static-within-other-static.stderr

10 lines
325 B
Plaintext
Raw Normal View History

error[E0080]: could not evaluate static initializer
--> $DIR/assign-to-static-within-other-static.rs:10:5
2018-11-19 04:19:14 -06:00
|
2019-03-09 06:03:44 -06:00
LL | FOO = 5;
2020-03-21 13:47:52 -05:00
| ^^^^^^^ modifying a static's initial value from another static's initializer
2018-11-19 04:19:14 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.