]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23716.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-23716.stderr
1 error[E0530]: function parameters cannot shadow statics
2   --> $DIR/issue-23716.rs:13:8
3    |
4 LL | static foo: i32 = 0;
5    | -------------------- a static `foo` is defined here
6 LL | 
7 LL | fn bar(foo: i32) {}
8    |        ^^^ cannot be named the same as a static
9
10 error[E0530]: function parameters cannot shadow statics
11   --> $DIR/issue-23716.rs:23:13
12    |
13 LL | use self::submod::answer;
14    |     -------------------- a static `answer` is imported here
15 LL | 
16 LL | fn question(answer: i32) {}
17    |             ^^^^^^ cannot be named the same as a static
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0530`.