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