rust/src/test/ui/expr_attr_paren_order.stderr
Andy Russell 7c0d145ec1
improve non_snake_case diagnostics
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00

15 lines
418 B
Plaintext

error: variable `X` should have a snake case name
--> $DIR/expr_attr_paren_order.rs:19:17
|
LL | let X = 0; //~ ERROR snake case name
| ^ help: convert the identifier to snake case: `x`
|
note: lint level defined here
--> $DIR/expr_attr_paren_order.rs:17:17
|
LL | #![deny(non_snake_case)]
| ^^^^^^^^^^^^^^
error: aborting due to previous error