fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
363 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: the lint level is defined here
10  --> $DIR/pub_const_err.rs:2:9
11   |
12LL | #![warn(const_err)]
13   |         ^^^^^^^^^
14