blob: 852a5b3b46a21385dd0f7ab014c13340facec3e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// normalize-stderr-64bit "64 bits" -> "word size"
// normalize-stderr-32bit "32 bits" -> "word size"
// normalize-stderr-64bit "128 bits" -> "2 * word size"
// normalize-stderr-32bit "64 bits" -> "2 * word size"
fn main() {
match &b""[..] {
ZST => {}
}
}
const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
//~^ ERROR cannot transmute between types of different sizes
|