rust/tests/ui/consts/no-ice-from-static-in-const-issue-52060.stderr
Ding Xiang Fei 1576a6d618
Stabilize const_refs_to_static
update tests

fix bitwidth-sensitive stderr output

use build-fail for asm tests
2024-09-26 13:21:15 +02:00

10 lines
356 B
Plaintext

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`.