summary refs log tree commit diff
path: root/src/test/ui/issue-23716.stderr
blob: 2db67c7ec00dd17545a70f2d7a666f2863c079e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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