]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/issue-23716.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / resolve / issue-23716.stderr
1 error[E0530]: function parameters cannot shadow statics
2 --> $DIR/issue-23716.rs:3:8
3 |
4 LL | static foo: i32 = 0;
5 | -------------------- the 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:13:13
12 |
13 LL | use self::submod::answer;
14 | -------------------- the 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`.