Do not uppercase-lint no_mangle statics
This commit is contained in:
parent
4b9b70c394
commit
6e0089ea77
2 changed files with 6 additions and 0 deletions
|
|
@ -16,4 +16,7 @@ static foo: isize = 1; //~ ERROR static variable `foo` should have an upper case
|
|||
static mut bar: isize = 1;
|
||||
//~^ ERROR static variable `bar` should have an upper case name such as `BAR`
|
||||
|
||||
#[no_mangle]
|
||||
pub static extern_foo: isize = 1; // OK, because #[no_mangle] supersedes the warning
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue