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