Allow wparam and lparam in similar_names
This commit is contained in:
parent
60826e77c3
commit
2eafec182d
3 changed files with 7 additions and 2 deletions
|
|
@ -72,6 +72,10 @@ fn main() {
|
|||
let rx1: i32;
|
||||
let tx_cake: i32;
|
||||
let rx_cake: i32;
|
||||
|
||||
// names often used in win32 code (for example WindowProc)
|
||||
let wparam: i32;
|
||||
let lparam: i32;
|
||||
}
|
||||
|
||||
fn foo() {
|
||||
|
|
|
|||
|
|
@ -92,13 +92,13 @@ LL | let parsee: i32;
|
|||
| ^^^^^^
|
||||
|
||||
error: binding's name is too similar to existing binding
|
||||
--> $DIR/similar_names.rs:81:16
|
||||
--> $DIR/similar_names.rs:85:16
|
||||
|
|
||||
LL | bpple: sprang,
|
||||
| ^^^^^^
|
||||
|
|
||||
note: existing binding defined here
|
||||
--> $DIR/similar_names.rs:80:16
|
||||
--> $DIR/similar_names.rs:84:16
|
||||
|
|
||||
LL | apple: spring,
|
||||
| ^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue