We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6980c commit 737005aCopy full SHA for 737005a
src/librustc/diagnostics.rs
@@ -173,7 +173,7 @@ The value of static and const variables must be known at compile time. You
173
can't cast a pointer as an integer because we can't know what value the
174
address will take.
175
176
-However, pointers to other constants' address are allowed in constants,
+However, pointers to other constants' addresses are allowed in constants,
177
example:
178
179
```
@@ -182,7 +182,7 @@ const Y: *const u32 = &X;
182
183
184
Therefore, casting one of these non-constant pointers to an integer results
185
-in a non-constant integer whichs lead to this error. Example:
+in a non-constant integer which lead to this error. Example:
186
187
188
const X: u32 = 50;
0 commit comments