]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-parameter-uppercase-lint.stderr
Rollup merge of #75348 - denisvasilik:intra-doc-links-core-time, r=jyn514
[rust.git] / src / test / ui / const-generics / const-parameter-uppercase-lint.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
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    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10 error: const parameter `x` should have an upper case name
11   --> $DIR/const-parameter-uppercase-lint.rs:6:15
12    |
13 LL | fn noop<const x: u32>() {
14    |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
15    |
16 note: the lint level is defined here
17   --> $DIR/const-parameter-uppercase-lint.rs:4:9
18    |
19 LL | #![deny(non_upper_case_globals)]
20    |         ^^^^^^^^^^^^^^^^^^^^^^
21
22 error: aborting due to previous error; 1 warning emitted
23