1 error[E0530]: function parameters cannot shadow statics
2 --> $DIR/issue-23716.rs:3:8
4 LL | static foo: i32 = 0;
5 | -------------------- the static `foo` is defined here
7 LL | fn bar(foo: i32) {}
8 | ^^^ cannot be named the same as a static
10 error[E0530]: function parameters cannot shadow statics
11 --> $DIR/issue-23716.rs:13:13
13 LL | use self::submod::answer;
14 | -------------------- the static `answer` is imported here
16 LL | fn question(answer: i32) {}
17 | ^^^^^^ cannot be named the same as a static
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0530`.