File tree Expand file tree Collapse file tree 5 files changed +42
-4
lines changed Expand file tree Collapse file tree 5 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -92,4 +92,8 @@ pub mod rust_future {
9292 #[ stable( feature = "prelude_2024" , since = "1.85.0" ) ]
9393 #[ doc( no_inline) ]
9494 pub use crate :: future:: { Future , IntoFuture } ;
95+
96+ #[ unstable( feature = "prelude_next" , issue = "none" ) ]
97+ #[ doc( no_inline) ]
98+ pub use crate :: marker:: { MetaSized , PointeeSized } ;
9599}
Original file line number Diff line number Diff line change 11//@ check-fail
22#![ feature( sized_hierarchy) ]
33
4- use std:: marker:: { MetaSized , PointeeSized } ;
5-
64trait Sized_ : Sized { }
75
86trait NegSized : ?Sized { }
Original file line number Diff line number Diff line change 11//@ check-pass
22#![ feature( extern_types, sized_hierarchy) ]
33
4- use std:: marker:: { MetaSized , PointeeSized } ;
5-
64pub fn hash < T : PointeeSized > ( _: * const T ) {
75 unimplemented ! ( ) ;
86}
Original file line number Diff line number Diff line change 1+ error[E0405]: cannot find trait `MetaSized` in this scope
2+ --> $DIR/prelude.rs:10:21
3+ |
4+ LL | pub fn metasized<T: MetaSized>() {}
5+ | ^^^^^^^^^ not found in this scope
6+ |
7+ help: consider importing this trait
8+ |
9+ LL + use std::marker::MetaSized;
10+ |
11+
12+ error[E0405]: cannot find trait `PointeeSized` in this scope
13+ --> $DIR/prelude.rs:12:24
14+ |
15+ LL | pub fn pointeesized<T: PointeeSized>() {}
16+ | ^^^^^^^^^^^^ not found in this scope
17+ |
18+ help: consider importing this trait
19+ |
20+ LL + use std::marker::PointeeSized;
21+ |
22+
23+ error: aborting due to 2 previous errors
24+
25+ For more information about this error, try `rustc --explain E0405`.
Original file line number Diff line number Diff line change 1+ //@ compile-flags: --crate-type=lib
2+ //@ revisions: e2024 future
3+ //@[e2024] edition: 2024
4+ //@[e2024] check-fail
5+ //@[future] compile-flags: -Zunstable-options
6+ //@[future] edition: future
7+ //@[future] check-pass
8+ #![ feature( sized_hierarchy) ]
9+
10+ pub fn metasized < T : MetaSized > ( ) { }
11+ //[e2024]~^ ERROR cannot find trait `MetaSized` in this scope
12+ pub fn pointeesized < T : PointeeSized > ( ) { }
13+ //[e2024]~^ ERROR cannot find trait `PointeeSized` in this scope
You can’t perform that action at this time.
0 commit comments