Improve camelcase suggestion
This commit is contained in:
parent
79dd393a4f
commit
60aa751620
2 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,9 @@
|
|||
#![forbid(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
struct ONE_TWO_THREE;
|
||||
//~^ ERROR type `ONE_TWO_THREE` should have a camel case name such as `OneTwoThree`
|
||||
|
||||
struct foo { //~ ERROR type `foo` should have a camel case name such as `Foo`
|
||||
bar: isize,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue