We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2251525 commit 46b1c89Copy full SHA for 46b1c89
tests/testsuite/custom_target.rs
@@ -11,8 +11,18 @@ const MINIMAL_LIB: &str = r#"
11
#![feature(lang_items)]
12
#![no_core]
13
14
+#[lang = "pointee_sized"]
15
+pub trait PointeeSized {
16
+ // Empty.
17
+}
18
+
19
+#[lang = "meta_sized"]
20
+pub trait MetaSized: PointeeSized {
21
22
23
24
#[lang = "sized"]
-pub trait Sized {
25
+pub trait Sized: MetaSized {
26
// Empty.
27
}
28
#[lang = "copy"]
tests/testsuite/doc.rs
@@ -815,6 +815,12 @@ fn doc_target() {
815
#![feature(no_core, lang_items)]
816
817
818
+ #[lang = "pointee_sized"]
819
+ trait PointeeSized {}
820
821
+ #[lang = "meta_sized"]
822
+ trait MetaSized: PointeeSized {}
823
824
825
trait Sized {}
826
0 commit comments