1
Fork 0

Add unstable type_ascribe macro

This macro serves as a placeholder for future type ascription syntax to
make sure that the semantic implementation keeps working.
This commit is contained in:
Nilstrieb 2022-11-19 21:27:57 +01:00
parent 2a434286a9
commit 6ee0dd97e3
No known key found for this signature in database
6 changed files with 76 additions and 0 deletions

View file

@ -85,6 +85,14 @@ pub use core::prelude::v1::cfg_accessible;
)]
pub use core::prelude::v1::cfg_eval;
// Do not `doc(no_inline)` either.
#[unstable(
feature = "type_ascription",
issue = "23416",
reason = "placeholder syntax for type ascription"
)]
pub use core::prelude::v1::type_ascribe;
// The file so far is equivalent to src/libcore/prelude/v1.rs,
// and below to src/liballoc/prelude.rs.
// Those files are duplicated rather than using glob imports