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