]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52060.stderr
988bfd480e6add84fde91a482dd2aafb86cebee9
[rust.git] / src / test / ui / issues / issue-52060.stderr
1 error[E0013]: constants cannot refer to statics, use a constant instead
2   --> $DIR/issue-52060.rs:4:26
3    |
4 LL | static B: [u32; 1] = [0; A.len()];
5    |                          ^
6
7 error: `core::slice::<impl [T]>::len` is not yet stable as a const fn
8   --> $DIR/issue-52060.rs:4:26
9    |
10 LL | static B: [u32; 1] = [0; A.len()];
11    |                          ^^^^^^^
12    |
13    = help: in Nightly builds, add `#![feature(const_slice_len)]` to the crate attributes to enable
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0013`.