Emit the uppercase variable lint for struct fields that have names with uppercase characters
This commit is contained in:
parent
e3723dc4f1
commit
258dbd09ba
2 changed files with 26 additions and 1 deletions
|
@ -13,6 +13,10 @@
|
|||
use std::io::File;
|
||||
use std::io::IoError;
|
||||
|
||||
struct Something {
|
||||
X: uint //~ ERROR structure field names should start with a lowercase character
|
||||
}
|
||||
|
||||
fn test(Xx: uint) { //~ ERROR variable names should start with a lowercase character
|
||||
println!("{}", Xx);
|
||||
}
|
||||
|
@ -30,5 +34,7 @@ fn main() {
|
|||
}
|
||||
|
||||
test(1);
|
||||
|
||||
let _ = Something { X: 0 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue