File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,18 @@ const MINIMAL_LIB: &str = r#"
11
11
#![feature(lang_items)]
12
12
#![no_core]
13
13
14
+ #[lang = "pointee_sized"]
15
+ pub trait PointeeSized {
16
+ // Empty.
17
+ }
18
+
19
+ #[lang = "meta_sized"]
20
+ pub trait MetaSized: PointeeSized {
21
+ // Empty.
22
+ }
23
+
14
24
#[lang = "sized"]
15
- pub trait Sized {
25
+ pub trait Sized: MetaSized {
16
26
// Empty.
17
27
}
18
28
#[lang = "copy"]
Original file line number Diff line number Diff line change @@ -815,8 +815,14 @@ fn doc_target() {
815
815
#![feature(no_core, lang_items)]
816
816
#![no_core]
817
817
818
+ #[lang = "pointee_sized"]
819
+ trait PointeeSized {}
820
+
821
+ #[lang = "meta_sized"]
822
+ trait MetaSized: PointeeSized {}
823
+
818
824
#[lang = "sized"]
819
- trait Sized {}
825
+ trait Sized: MetaSized {}
820
826
821
827
extern {
822
828
pub static A: u32;
You can’t perform that action at this time.
0 commit comments