Uh oh!
There was an error while loading. Please reload this page.
Add long diagnostics for E0018 - #24525
Conversation
rust-highfive
commented
Apr 17, 2015
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
s/the compile-time which/compile time, which/
There was a problem hiding this comment.
I'm don't get your point.
There was a problem hiding this comment.
He means "... value of static and const variables must be known at compile time, which is ...".
And I think he's right.
55eabfc to
3434062Comparepnkfelix
commented
Apr 17, 2015
Don't you need to delete the other entry too? |
GuillaumeGomez
commented
Apr 18, 2015
@pnkfelix: Totally, thanks for noticing me ! |
3434062 to
123b7ddCompareGuillaumeGomez
commented
Apr 18, 2015
And it's done ! |
bors
commented
Apr 18, 2015
☔ The latest upstream changes (presumably #24562) made this pull request unmergeable. Please resolve the merge conflicts. |
123b7dd to
5f20141CompareGuillaumeGomez
commented
Apr 18, 2015
@apasel422: Did you find another way ? For my french mind, it seems totally fine haha. |
michaelsproul
commented
Apr 19, 2015
I think the explanation needs a bit more detail to fully convey the subtlety of this error. Pointers are allowed in I think an ideal explanation for this error should cover these points:
// This is fine.constX:u32 = 50;constY:*constu32 = &X;println!("{:?}",Y);
You could also link to the RFC and the issue. |
GuillaumeGomez
commented
Apr 19, 2015
@michaelsproul: I don't think giving links to RFC/issue was a good idea. I added your explanations. Do you find something else to correct or add ? |
There was a problem hiding this comment.
This looks great except for the second sentence here. I think integer as a pointer should be pointer as an integer and what value will be at the address should be what value the address will take.
91aa6cf to
8a6980cCompareGuillaumeGomez
commented
Apr 19, 2015
@michaelsproul: It's corrected ! Thanks again ! |
michaelsproul
commented
Apr 19, 2015
@GuillaumeGomez: Looks good to me 👍 |
There was a problem hiding this comment.
typo: "whichs lead to this error" is not correct. Should be "which"
GuillaumeGomez
commented
Apr 20, 2015
@pnkfelix: It's corrected, thanks ! |
Part of #24407.