summaryrefslogtreecommitdiffstats
path: root/src/test/ui/layout/debug.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/layout/debug.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/layout/debug.rs')
-rw-r--r--src/test/ui/layout/debug.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/layout/debug.rs b/src/test/ui/layout/debug.rs
deleted file mode 100644
index a282e7123..000000000
--- a/src/test/ui/layout/debug.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
-#![feature(never_type, rustc_attrs, type_alias_impl_trait)]
-#![crate_type = "lib"]
-
-#[rustc_layout(debug)]
-enum E { Foo, Bar(!, i32, i32) } //~ ERROR: layout_of
-
-#[rustc_layout(debug)]
-struct S { f1: i32, f2: (), f3: i32 } //~ ERROR: layout_of
-
-#[rustc_layout(debug)]
-union U { f1: (i32, i32), f3: i32 } //~ ERROR: layout_of
-
-#[rustc_layout(debug)]
-type Test = Result<i32, i32>; //~ ERROR: layout_of
-
-#[rustc_layout(debug)]
-type T = impl std::fmt::Debug; //~ ERROR: layout_of
-
-fn f() -> T {
- 0i32
-}