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