diff options
Diffstat (limited to 'src/test/ui/cast/cast-region-to-uint.rs')
-rw-r--r-- | src/test/ui/cast/cast-region-to-uint.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/cast/cast-region-to-uint.rs b/src/test/ui/cast/cast-region-to-uint.rs new file mode 100644 index 000000000..33ec2d276 --- /dev/null +++ b/src/test/ui/cast/cast-region-to-uint.rs @@ -0,0 +1,6 @@ +// run-pass + +pub fn main() { + let x: isize = 3; + println!("&x={:x}", (&x as *const isize as usize)); +} |