]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-prop-read-static-in-const.stderr
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-prop-read-static-in-const.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-prop-read-static-in-const.rs:5:18
3    |
4 LL | const TEST: u8 = MY_STATIC;
5    | -----------------^^^^^^^^^-
6    |                  |
7    |                  constant accesses static
8    |
9    = note: `#[deny(const_err)]` on by default
10
11 warning: skipping const checks
12    |
13 help: skipping check that does not even have a feature gate
14   --> $DIR/const-prop-read-static-in-const.rs:5:18
15    |
16 LL | const TEST: u8 = MY_STATIC;
17    |                  ^^^^^^^^^
18
19 error: aborting due to previous error; 1 warning emitted
20