rust/src/test/ui/issue-23716.stderr

22 lines
670 B
Plaintext
Raw Normal View History

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
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0530"