File tree 4 files changed +43
-1
lines changed 4 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -92,4 +92,8 @@ pub mod rust_future {
92
92
#[ stable( feature = "prelude_2024" , since = "1.85.0" ) ]
93
93
#[ doc( no_inline) ]
94
94
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 } ;
95
99
}
Original file line number Diff line number Diff line change 1
1
//@ check-pass
2
2
#![ feature( extern_types, sized_hierarchy) ]
3
3
4
- use std:: marker:: { MetaSized , PointeeSized } ;
4
+ use std:: marker:: PointeeSized ;
5
5
6
6
pub fn hash < T : PointeeSized > ( _: * const T ) {
7
7
unimplemented ! ( ) ;
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