fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
720 B22 linesraw
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2  --> $DIR/const-parameter-uppercase-lint.rs:1:12
3   |
4LL | #![feature(const_generics)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error: const parameter `x` should have an upper case name
10  --> $DIR/const-parameter-uppercase-lint.rs:6:15
11   |
12LL | fn noop<const x: u32>() {
13   |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
14   |
15note: the lint level is defined here
16  --> $DIR/const-parameter-uppercase-lint.rs:4:9
17   |
18LL | #![deny(non_upper_case_globals)]
19   |         ^^^^^^^^^^^^^^^^^^^^^^
20
21error: aborting due to previous error
22