rust/tests/ui/borrowck/borrowck-assign-to-constants.stderr

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

10 lines
268 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0594]: cannot assign to immutable static item `foo`
--> $DIR/borrowck-assign-to-constants.rs:5:5
2018-08-08 07:28:26 -05:00
|
LL | foo = 6;
2018-08-08 07:28:26 -05:00
| ^^^^^^^ cannot assign
error: aborting due to previous error
2019-11-06 06:58:44 -06:00
For more information about this error, try `rustc --explain E0594`.