]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-parameter-uppercase-lint.stderr
Rollup merge of #71191 - GuillaumeGomez:cleanup-e0520, r=Dylan-DPC
[rust.git] / src / test / ui / const-generics / const-parameter-uppercase-lint.stderr
1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2   --> $DIR/const-parameter-uppercase-lint.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8
9 error: const parameter `x` should have an upper case name
10   --> $DIR/const-parameter-uppercase-lint.rs:6:15
11    |
12 LL | fn noop<const x: u32>() {
13    |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
14    |
15 note: the lint level is defined here
16   --> $DIR/const-parameter-uppercase-lint.rs:4:9
17    |
18 LL | #![deny(non_upper_case_globals)]
19    |         ^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to previous error; 1 warning emitted
22