about summary refs log tree commit diff
path: root/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood2@arm.com>2025-01-23 11:25:12 +0000
committerDavid Wood <david.wood2@arm.com>2025-06-16 23:04:33 +0000
commit322cc315040da14c12f84d74fd5761c5d064e50e (patch)
tree5ee130130df3546a2f012dd84ad8bc95819da381 /tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs
parentc6d88a1892ed9a7e6b12d116070be59114a624ad (diff)
downloadrust-322cc315040da14c12f84d74fd5761c5d064e50e.tar.gz
rust-322cc315040da14c12f84d74fd5761c5d064e50e.zip
tests: `{Meta,Pointee}Sized` in non-minicore tests
As before, add `MetaSized` and `PointeeSized` traits to all of the
non-minicore `no_core` tests so that they don't fail for lack of
language items.
Diffstat (limited to 'tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs')
-rw-r--r--tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs b/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs
index 215e64979f7..e96e17a4212 100644
--- a/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs
+++ b/tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute-e-d.rs
@@ -4,8 +4,14 @@
 #![feature(no_core, lang_items, riscv_target_feature)]
 #![no_core]
 
+#[lang = "pointee_sized"]
+pub trait PointeeSized {}
+
+#[lang = "meta_sized"]
+pub trait MetaSized: PointeeSized {}
+
 #[lang = "sized"]
-pub trait Sized {}
+pub trait Sized: MetaSized {}
 
 #[target_feature(enable = "d")]
 //~^ERROR: cannot be enabled with