rust/tests/ui/consts/no-ice-from-static-in-const-issue-52060.stderr

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

10 lines
356 B
Plaintext
Raw Permalink Normal View History

error[E0080]: evaluation of constant value failed
--> $DIR/no-ice-from-static-in-const-issue-52060.rs:5:35
|
LL | static B: [u32; 1] = [0; unsafe { A.len() }];
| ^ constant accesses mutable global memory
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.