mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
parent
efcc1d1bcb
commit
62e5dee1c5
|
@ -218,9 +218,9 @@ struct X { x: (), }
|
|||
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);
|
||||
```
|
||||
"##,
|
||||
|
||||
|
|
Loading…
Reference in a new issue