1 // This assumes the packed and non-packed structs are different sizes.
3 // the error points to the start of the file, not the line with the
6 // normalize-stderr-test "\d+ bits" -> "N bits"
7 // error-pattern: cannot transmute between types of different sizes, or dependently-sized types
24 let foo = Foo { bar: 1, baz: 10 };
26 let oof: Oof = mem::transmute(foo);
27 println!("{:?}", oof);