Auto merge of #25834 - steveklabnik:gh25326, r=alexcrichton

Fixes #25326
This commit is contained in:
bors 2015-05-28 13:57:36 +00:00
commit a5a5fcee38

View File

@ -218,9 +218,9 @@ Therefore, casting one of these non-constant pointers to an integer results
in a non-constant integer which lead to this error. Example:
```
const X: u32 = 50;
const Y: *const u32 = &X;
println!("{:?}", Y);
const X: u32 = 1;
const Y: usize = &X as *const u32 as usize;
println!("{}", Y);
```
"##,