rust/src/test/ui/enable-unstable-lib-feature.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
421 B
Plaintext

error: function `BOGUS` should have a snake case name
--> $DIR/enable-unstable-lib-feature.rs:12:8
|
LL | pub fn BOGUS() { } //~ ERROR
| ^^^^^ help: convert the identifier to snake case: `bogus`
|
note: lint level defined here
--> $DIR/enable-unstable-lib-feature.rs:6:9
|
LL | #![deny(non_snake_case)] // To trigger a hard error
| ^^^^^^^^^^^^^^
error: aborting due to previous error