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
|
2018-02-22 18:42:32 -06:00
LL | static foo: i32 = 0;
| -------------------- a static `foo` is defined here
2018-02-24 17:01:39 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | 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
|
2018-02-22 18:42:32 -06:00
LL | use self::submod::answer;
| -------------------- a static `answer` is imported here
2018-02-24 17:01:39 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | 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"