fork/rust

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

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

1.42.0
356 B14 linesraw
1warning: any use of this value will cause an error
2  --> $DIR/pub_const_err.rs:6:20
3   |
4LL | pub const Z: u32 = 0 - 1;
5   | -------------------^^^^^-
6   |                    |
7   |                    attempt to subtract with overflow
8   |
9note: lint level defined here
10  --> $DIR/pub_const_err.rs:2:9
11   |
12LL | #![warn(const_err)]
13   |         ^^^^^^^^^
14