2017-12-10 13:47:55 -06:00
|
|
|
error[E0530]: function parameters cannot shadow statics
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23716.rs:13:8
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
11 | static foo: i32 = 0;
|
|
|
|
| -------------------- a static `foo` is defined here
|
2017-12-10 14:29:24 -06:00
|
|
|
12 |
|
|
|
|
13 | fn bar(foo: i32) {}
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^ cannot be named the same as a static
|
|
|
|
|
|
|
|
error[E0530]: function parameters cannot shadow statics
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23716.rs:23:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
21 | use self::submod::answer;
|
2017-12-10 13:47:55 -06:00
|
|
|
| -------------------- a static `answer` is imported here
|
2017-12-10 14:29:24 -06:00
|
|
|
22 |
|
|
|
|
23 | fn question(answer: i32) {}
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^ cannot be named the same as a static
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0530"
|