1 // normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
2 #![feature(never_type, rustc_attrs, type_alias_impl_trait)]
6 enum E { Foo, Bar(!, i32, i32) } //~ ERROR: layout_of
9 struct S { f1: i32, f2: (), f3: i32 } //~ ERROR: layout_of
11 #[rustc_layout(debug)]
12 union U { f1: (i32, i32), f3: i32 } //~ ERROR: layout_of
14 #[rustc_layout(debug)]
15 type Test = Result<i32, i32>; //~ ERROR: layout_of
17 #[rustc_layout(debug)]
18 type T = impl std::fmt::Debug; //~ ERROR: layout_of