fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
391 B16 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
15warning: 1 warning emitted
16