summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-parameter-uppercase-lint.stderr
blob: b7febed7bdd22e477fd62c12057ad619c5be2a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/const-parameter-uppercase-lint.rs:1:12
   |
LL | #![feature(const_generics)]
   |            ^^^^^^^^^^^^^^
   |
   = note: `#[warn(incomplete_features)]` on by default
   = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

error: const parameter `x` should have an upper case name
  --> $DIR/const-parameter-uppercase-lint.rs:6:15
   |
LL | fn noop<const x: u32>() {
   |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
   |
note: the lint level is defined here
  --> $DIR/const-parameter-uppercase-lint.rs:4:9
   |
LL | #![deny(non_upper_case_globals)]
   |         ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted