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