rust/src/test/ui/lint/lint-non-uppercase-associated-const.stderr
Andy Russell e379970056
improve non_upper_case_globals diagnostics
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00

15 lines
458 B
Plaintext

error: associated constant `not_upper` should have an upper case name
--> $DIR/lint-non-uppercase-associated-const.rs:7:11
|
LL | const not_upper: bool = true;
| ^^^^^^^^^ help: convert the identifier to upper case: `NOT_UPPER`
|
note: lint level defined here
--> $DIR/lint-non-uppercase-associated-const.rs:1:9
|
LL | #![deny(non_upper_case_globals)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error