fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
486 B18 linesraw
1warning: skipping const checks
2  --> $DIR/const-prop-read-static-in-const.rs:5:18
3   |
4LL | const TEST: u8 = MY_STATIC;
5   |                  ^^^^^^^^^
6
7error: any use of this value will cause an error
8  --> $DIR/const-prop-read-static-in-const.rs:5:18
9   |
10LL | const TEST: u8 = MY_STATIC;
11   | -----------------^^^^^^^^^-
12   |                  |
13   |                  constant accesses static
14   |
15   = note: `#[deny(const_err)]` on by default
16
17error: aborting due to previous error
18