2018-01-16 14:01:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[warn(bad_literal_representation)]
|
|
|
|
#[allow(unused_variables)]
|
|
|
|
fn main() {
|
2018-01-23 12:34:40 +01:00
|
|
|
// Hex: 7F, 80, 100, 1FF, 800, FFA, F0F3, 7F0F_F00D
|
|
|
|
let good = (127, 128, 256, 511, 2048, 4090, 61_683, 2_131_750_925);
|
2018-01-16 14:01:07 +01:00
|
|
|
let bad = ( // Hex:
|
|
|
|
4096, // 0x1000
|
|
|
|
16_371, // 0x3FF3
|
|
|
|
32_773, // 0x8005
|
|
|
|
65_280, // 0xFF00
|
|
|
|
2_131_750_927, // 0x7F0F_F00F
|
|
|
|
2_147_483_647, // 0x7FFF_FFFF
|
|
|
|
4_042_322_160, // 0xF0F0_F0F0
|
|
|
|
);
|
|
|
|
}
|