1 // normalize-stderr-64bit "64 bits" -> "word size"
2 // normalize-stderr-32bit "32 bits" -> "word size"
3 // normalize-stderr-64bit "128 bits" -> "2 * word size"
4 // normalize-stderr-32bit "64 bits" -> "2 * word size"
8 ZST
=> {}
//~ ERROR could not evaluate constant pattern
9 //~| ERROR could not evaluate constant pattern
13 const ZST
: &[u8] = unsafe { std::mem::transmute(1usize) }
;
14 //~^ ERROR any use of this value will cause an error
15 //~| ERROR cannot transmute between types of different sizes
16 //~| WARN this was previously accepted by the compiler but is being phased out
18 // Once the `any use of this value will cause an error` disappears in this test, make sure to
19 // remove the `TransmuteSizeDiff` error variant and make its emitter site an assertion again.