2020-03-21 09:07:44 +00:00
|
|
|
// normalize-stderr-test "pref: Align \{\n *pow2: [1-3],\n *\}" -> "pref: $$PREF_ALIGN"
|
2020-04-05 15:07:06 +00:00
|
|
|
#![feature(never_type, rustc_attrs, type_alias_impl_trait)]
|
2020-03-10 21:31:27 +00:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2020-03-20 16:48:03 +00:00
|
|
|
#[rustc_layout(debug)]
|
|
|
|
enum E { Foo, Bar(!, i32, i32) } //~ ERROR: layout debugging
|
|
|
|
|
|
|
|
#[rustc_layout(debug)]
|
|
|
|
struct S { f1: i32, f2: (), f3: i32 } //~ ERROR: layout debugging
|
|
|
|
|
|
|
|
#[rustc_layout(debug)]
|
|
|
|
union U { f1: (i32, i32), f3: i32 } //~ ERROR: layout debugging
|
2020-03-10 21:31:27 +00:00
|
|
|
|
|
|
|
#[rustc_layout(debug)]
|
2020-03-20 16:48:03 +00:00
|
|
|
type Test = Result<i32, i32>; //~ ERROR: layout debugging
|
2020-04-05 15:07:06 +00:00
|
|
|
|
|
|
|
#[rustc_layout(debug)]
|
|
|
|
type T = impl std::fmt::Debug; //~ ERROR: layout debugging
|
|
|
|
|
|
|
|
fn f() -> T {
|
|
|
|
0i32
|
|
|
|
}
|