]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-read-static-in-const.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / consts / const-prop-read-static-in-const.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $DIR/const-prop-read-static-in-const.rs:5:18
3    |
4 LL | const TEST: u8 = MY_STATIC;
5    |                  ^^^^^^^^^ constant accesses static
6
7 warning: skipping const checks
8    |
9 help: skipping check that does not even have a feature gate
10   --> $DIR/const-prop-read-static-in-const.rs:5:18
11    |
12 LL | const TEST: u8 = MY_STATIC;
13    |                  ^^^^^^^^^
14
15 error: aborting due to previous error; 1 warning emitted
16
17 For more information about this error, try `rustc --explain E0080`.